-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update do Dockerfile #31
base: master
Are you sure you want to change the base?
Conversation
Revisão parcial do Dockerfile - Redução de imagens temporárias
@@ -1,18 +1,26 @@ | |||
# -------------------------- Dockerfile (jboss) -------------------------- # | |||
|
|||
FROM centos:7.1.1503 | |||
MAINTAINER [email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tipo descontinuado
ADD /siga/flyway-commandline-3.0.tar.gz -C /siga/ | ||
|
||
|
||
RUN /opt/jboss/bin/jboss-cli.sh --command="patch apply /opt/jboss-eap-6.2/jboss-eap-6.2.3-patch.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script pode ser executado sem a necessidade de unzip do arquivo de patch
COPY conf/flyway/flyway.sigasr.properties /siga/flyway-3.0/conf/ | ||
COPY conf/flyway/flyway.sigagc.properties /siga/flyway-3.0/conf/ | ||
COPY conf/flyway/flyway.sigatp.properties /siga/flyway-3.0/conf/ | ||
COPY conf/flyway/* /siga/flyway-3.0/conf/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O coriga funciona e elimina a necessidade de execução de comando repetitivos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foram feitos alguns testes para construção de Container Docker na TELEBRAS e as modificações propostas estão associadas às lições aprendidas.
@@ -1,18 +1,26 @@ | |||
# -------------------------- Dockerfile (jboss) -------------------------- # | |||
|
|||
FROM centos:7.1.1503 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Na TLB estamos testando com o UBUNTU 18.04, algumas mudanças são necessárias, mas bem pontuais.
- Java SDK ".rpm" uso do Alien para converter *.deb e fazer a instalação na execução do Docker file
FROM ubuntu:18.04
...
COPY apps/jdk-7u71-linux-x64.rpm /tmp
RUN set eux; \
alien --to-deb --script --install /tmp/jdk-7u71-linux-x64.rpm;\
...
&& useradd -m -u 52677 -g jboss -c "JBoss EAP Admin User" jboss \ | ||
&& ln -s /opt/jboss-eap-6.2 /opt/jboss \ | ||
&& mkdir -p /var/log/jboss/sigadoc \ | ||
&& mkdir -p /siga \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instrução repetida
Revisão parcial do Dockerfile - Redução de imagens temporárias