Skip to content

Commit

Permalink
Dockerfile to build and deploy vfsa #8
Browse files Browse the repository at this point in the history
This Dockerfile is used to generate docker images of the vfsa package
with the Madagascar package installed and configured
  • Loading branch information
Dirack committed Apr 9, 2020
1 parent 43a58c3 commit bb7bba5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
#
# Dockerfile
#
# Objetivo: Deploy da biblioteca vfsa.
#
# Site: https://dirack.github.io
#
# Versão 1.0
#
# Programador: Rodolfo A C Neves (Dirack) 08/04/2020
#
# Email: rodolfo_profissional@hotmail.com
#
# Licença: GPL-3.0 <https://www.gnu.org/licenses/gpl-3.0.txt>.

# Pacote Madagascar versão 3.0 com dependências básicas configuradas
FROM dirack/ambientemadagascar:1.0

# Variáveis de ambiente do pacote Madagascar
ENV RSFSRC="/root/madagascar-3.0"
ENV RSFROOT="/root/madagascar"
ENV VFSAROOT="/root/madagascar-3.0/user/vfsa"

# define o mantenedor da imagem
LABEL maintainer="Rodolfo Dirack"
LABEL email="rodolfo_profissional@hotmail.com"
LABEL site="https://dirack.github.io"

# Instalação da vfsa no Madagascar
RUN git clone -b v1.0 --depth 1 https://github.com/Dirack/vfsa.git "$VFSAROOT"
RUN cd "$VFSAROOT" && scons && cd "$RSFSRC" && scons install

# Ir para o diretório de exemplos
WORKDIR "$VFSAROOT/usage_examples"

0 comments on commit bb7bba5

Please sign in to comment.