Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update do Dockerfile #31

wants to merge 1 commit into from

Conversation

celo10
Copy link

@celo10 celo10 commented Aug 13, 2019

Revisão parcial do Dockerfile - Redução de imagens temporárias

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]
Copy link
Author

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"
Copy link
Author

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/
Copy link
Author

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.

Copy link
Author

@celo10 celo10 left a 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
Copy link
Author

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 \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instrução repetida

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant