-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from GMOD/docker-updates
Docker updates
- Loading branch information
Showing
7 changed files
with
126 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM ubuntu:20.04 | ||
MAINTAINER Scott Cain <[email protected]> | ||
|
||
RUN apt-get update | ||
|
||
#for some reason, this has to be installed by itself | ||
RUN apt-get install -y tzdata | ||
|
||
RUN apt-get install -y apt-utils | ||
|
||
RUN apt-get install -y wget \ | ||
unzip \ | ||
git \ | ||
make \ | ||
gcc \ | ||
vim \ | ||
uuid-dev | ||
|
||
RUN apt-get install -y postgresql-all | ||
|
||
RUN cd /usr/local \ | ||
&& wget -qO- https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/8.5.2/flyway-commandline-8.5.2-linux-x64.tar.gz | tar xvz \ | ||
&& ln -s `pwd`/flyway-8.5.2/flyway /usr/local/bin | ||
|
||
ARG CHADO_BRANCH=${CHADO_BRANCH} | ||
ARG CHADO_VERSION=${CHADO_VERSION} | ||
|
||
RUN cd / \ | ||
&& git clone https://github.com/GMOD/Chado.git \ | ||
&& cd Chado \ | ||
&& git checkout ${CHADO_BRANCH} | ||
|
||
RUN /etc/init.d/postgresql start \ | ||
&& su -c "createdb chado" - postgres \ | ||
&& su -c "psql chado < /Chado/chado/schemas/${CHADO_VERSION}/default_schema.sql" - postgres \ | ||
&& su -c "psql -c \"ALTER USER postgres PASSWORD 'chadotest';\"" - postgres \ | ||
&& /etc/init.d/postgresql stop; | ||
|
||
ADD flyway.conf /root/flyway.conf | ||
ADD entrypoint.sh entrypoint.sh | ||
ADD motd /etc/motd | ||
|
||
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/issue && cat /etc/motd' >> /etc/bash.bashrc | ||
|
||
ENTRYPOINT ["sh", "entrypoint.sh"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/etc/init.d/postgresql start | ||
/bin/bash |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
flyway.url=jdbc:postgresql://localhost:5432/chado | ||
flyway.user=postgres | ||
flyway.password=chadotest | ||
flyway.schemas=public | ||
flyway.locations=filesystem:/Chado | ||
flyway.validateOnMigrate=false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
all: v1.31 | ||
|
||
v1.31: | ||
docker build \ | ||
-t gmod/chado:1.31 \ | ||
--build-arg CHADO_BRANCH=1.31-release \ | ||
--build-arg CHADO_VERSION=1.31 \ | ||
. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
________ _____ ____ ____ | ||
/ ____/ / / / | / __ \/ __ \ | ||
/ / / /_/ / /| | / / / / / / / | ||
/ /___/ __ / ___ |/ /_/ / /_/ / | ||
\____/_/ /_/_/ |_/_____/\____/ | ||
|
||
This Chado docker image uses default security settings for | ||
PostgreSQL and has a hard-coded password for the postgres | ||
user. Do not use this image for a production service without | ||
first correcting |