Update do Dockerfile#31
Open
celo10 wants to merge 1 commit intoprojeto-siga:masterfrom
celo10:patch-1
Open
Conversation
Revisão parcial do Dockerfile - Redução de imagens temporárias
celo10
commented
Aug 13, 2019
| # -------------------------- Dockerfile (jboss) -------------------------- # | ||
|
|
||
| FROM centos:7.1.1503 | ||
| MAINTAINER tssesia@jfrj.jus.br |
celo10
commented
Aug 13, 2019
| 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" |
Author
There was a problem hiding this comment.
Script pode ser executado sem a necessidade de unzip do arquivo de patch
celo10
commented
Aug 13, 2019
| 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/ |
Author
There was a problem hiding this comment.
O coriga funciona e elimina a necessidade de execução de comando repetitivos.
celo10
commented
Aug 13, 2019
Author
celo10
left a comment
There was a problem hiding this comment.
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 | |||
Author
There was a problem hiding this comment.
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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Revisão parcial do Dockerfile - Redução de imagens temporárias