Skip to content

Commit c8accac

Browse files
Merge branch 'develop'
2 parents da8e4ac + 1b2b9db commit c8accac

28 files changed

+1041
-248
lines changed

.devcontainer/Dockerfile

-32
This file was deleted.

.devcontainer/devcontainer.json

+32-36
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,42 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/java-8
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
33
{
4-
"name": "Java 8",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
9-
// Use bullseye when running on local arm64/Apple Silicon.
10-
"VARIANT": "bullseye",
11-
// Options
12-
"INSTALL_MAVEN": "false",
13-
"INSTALL_GRADLE": "true",
14-
"NODE_VERSION": "12"
4+
"name": "Apollo",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
7+
"features": {
8+
"ghcr.io/devcontainers-extra/features/gradle-sdkman:2": {
9+
"version": "2.11",
10+
"jdkVersion": "8",
11+
"jdkDistro": "tem"
12+
},
13+
"ghcr.io/devcontainers-extra/features/grails-sdkman:2": {
14+
"version": "2.5.5",
15+
"jdkVersion": "8",
16+
"jdkDistro": "tem"
17+
},
18+
"ghcr.io/devcontainers-extra/features/groovy-sdkman:2": {
19+
"version": "latest",
20+
"jdkVersion": "8",
21+
"jdkDistro": "tem"
22+
},
23+
"ghcr.io/devcontainers/features/node:1": {
24+
"version": "12"
1525
}
16-
},
17-
18-
// Set *default* container specific settings.json values on container create.
19-
"settings": {
20-
"java.jdt.java.ls.home": "/docker-java-home",
21-
"java.import.gradle.java.home": "/usr/local/sdkman/candidates/java/current",
22-
"java.configuration.runtimes": [{
23-
"default": true,
24-
"name": "JavaSE-1.8",
25-
"path": "/usr/local/sdkman/candidates/java/current"
26-
}]
27-
},
26+
}
2827

29-
// Add the IDs of extensions you want installed when the container is created.
30-
"extensions": [
31-
"vscjava.vscode-java-pack"
32-
],
28+
// Features to add to the dev container. More info: https://containers.dev/features.
29+
// "features": {},
3330

3431
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3532
// "forwardPorts": [],
3633

3734
// Use 'postCreateCommand' to run commands after the container is created.
38-
"postCreateCommand": "pipx install apollo",
35+
// "postCreateCommand": "uname -a",
3936

40-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
41-
"remoteUser": "vscode",
42-
"features": {
43-
"git": "os-provided",
44-
"python": "os-provided"
45-
}
37+
// Configure tool-specific properties.
38+
// "customizations": {},
39+
40+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
41+
// "remoteUser": "root"
4642
}

.github/workflows/python-apollo.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
12-
python-version: [3.8.7]
12+
python-version: [3.9]
1313
steps:
1414
- name: Checkout Apollo
1515
uses: actions/checkout@v2
@@ -40,8 +40,8 @@ jobs:
4040
run: |
4141
pwd
4242
cd python-apollo
43-
pip install -U pip setuptools nose apollo
44-
- uses: actions/cache@v2
43+
pip install "setuptools==68.2.2" nose apollo
44+
- uses: actions/cache@v4
4545
with:
4646
path: ~/.cache/pip
4747
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -69,7 +69,7 @@ jobs:
6969
export ARROW_GLOBAL_CONFIG_PATH=`pwd`/test-data/local-apollo2-arrow.yml
7070
python setup.py nosetests
7171
72-
- uses: actions/cache@v2
72+
- uses: actions/cache@v4
7373
with:
7474
path: |
7575
~/.gradle/caches
@@ -78,7 +78,7 @@ jobs:
7878
restore-keys: |
7979
${{ runner.os }}-gradle-
8080
- name: Cache local Maven repository
81-
uses: actions/cache@v2
81+
uses: actions/cache@v4
8282
with:
8383
path: ~/.m2/repository
8484
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

ChangeLog.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 2.8.0
2+
3+
Bug Fixes
4+
5+
- Security fixes
6+
7+
Infrastructure Changes
8+
9+
- Upgrade to [JBrowse 1.16.12](https://github.com/GMOD/jbrowse/releases/tag/1.16.12-release)
10+
111
## 2.7.0
212

313
Features

Dockerfile

+68-48
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
11
# Apollo2.X
22
FROM ubuntu:20.04
3-
MAINTAINER Nathan Dunn GH @nathandunn
4-
ENV DEBIAN_FRONTEND noninteractive
3+
ENV DEBIAN_FRONTEND=noninteractive
54

65

76
# where bin directories are
8-
ENV CATALINA_HOME /usr/share/tomcat9
7+
ENV CATALINA_HOME=/usr/share/tomcat9
98
# where webapps are deployed
10-
ENV CATALINA_BASE /var/lib/tomcat9
11-
ENV CONTEXT_PATH ROOT
12-
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
13-
14-
RUN apt-get -qq update --fix-missing && \
15-
apt-get --no-install-recommends -y install \
16-
git locales locales-all build-essential libpq-dev wget python3-pip \
17-
lsb-release gnupg2 wget xmlstarlet netcat libpng-dev postgresql-common \
18-
zlib1g-dev libexpat1-dev curl ssl-cert zip unzip openjdk-8-jdk-headless
19-
20-
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' && \
21-
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
22-
23-
RUN apt-get -qq update --fix-missing && \
24-
apt-get --no-install-recommends -y install \
25-
postgresql-9.6 postgresql-client-9.6 tomcat9 && \
26-
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /apollo/
27-
28-
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
29-
RUN apt-get -qq update --fix-missing && \
30-
apt-get --no-install-recommends -y install nodejs
31-
32-
33-
RUN curl -s "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/blat/blat" -o /usr/local/bin/blat && \
34-
chmod +x /usr/local/bin/blat && \
35-
curl -s "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit" -o /usr/local/bin/faToTwoBit && \
36-
chmod +x /usr/local/bin/faToTwoBit && \
37-
wget --quiet https://github.com/galaxy-genome-annotation/chado-schema-builder/releases/download/1.31-jenkins26/chado-1.31.sql.gz -O /chado.sql.gz && \
38-
gunzip /chado.sql.gz
9+
ENV CATALINA_BASE=/var/lib/tomcat9
10+
ENV CONTEXT_PATH=ROOT
11+
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
12+
13+
RUN <<EOF
14+
apt-get -qq update --fix-missing
15+
apt-get --no-install-recommends -y install git locales locales-all \
16+
build-essential libpq-dev wget python3-pip lsb-release gnupg2 wget xmlstarlet \
17+
netcat libpng-dev postgresql-common zlib1g-dev libexpat1-dev curl ssl-cert zip \
18+
unzip openjdk-8-jdk-headless
19+
20+
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
21+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
22+
23+
apt-get -qq update --fix-missing
24+
apt-get --no-install-recommends -y install postgresql-9.6 \
25+
postgresql-client-9.6 tomcat9
26+
apt-get autoremove -y
27+
apt-get clean
28+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /apollo/
29+
30+
curl -sL https://deb.nodesource.com/setup_12.x | bash -
31+
apt-get -qq update --fix-missing
32+
apt-get --no-install-recommends -y install nodejs
33+
34+
curl -s "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/blat/blat" -o /usr/local/bin/blat
35+
chmod +x /usr/local/bin/blat
36+
curl -s "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit" -o /usr/local/bin/faToTwoBit
37+
chmod +x /usr/local/bin/faToTwoBit
38+
wget --quiet https://github.com/galaxy-genome-annotation/chado-schema-builder/releases/download/1.31-jenkins26/chado-1.31.sql.gz -O /chado.sql.gz
39+
gunzip /chado.sql.gz
3940

4041
#NOTE, we had problems with the build the archive-file coming in from github so using a clone instead
41-
RUN npm i -g yarn && useradd -ms /bin/bash -d /apollo apollo
42+
npm i -g yarn
43+
useradd -ms /bin/bash -d /apollo apollo
44+
EOF
45+
4246
COPY client /apollo/client
4347
COPY gradlew /apollo
4448
COPY grails-app /apollo/grails-app
@@ -58,35 +62,51 @@ RUN ls /apollo
5862

5963
COPY docker-files/build.sh /bin/build.sh
6064
ADD docker-files/docker-apollo-config.groovy /apollo/apollo-config.groovy
61-
RUN chown -R apollo:apollo /apollo
65+
RUN <<EOF
66+
mkdir /var/lib/postgresql
67+
mkdir /data
68+
69+
chown -R apollo:apollo /apollo
70+
chown -R apollo:apollo ${CATALINA_BASE}
71+
chown -R apollo:apollo ${CATALINA_HOME}
72+
chown -R apollo:apollo /var/run/postgresql
73+
chown -R apollo:apollo /var/lib/postgresql
74+
chown -R apollo:apollo /etc/tomcat9
75+
chown -R apollo:apollo /var/log/tomcat9
76+
chown -R apollo:apollo /var/cache/tomcat9
77+
chown -R apollo:apollo /data
78+
EOF
6279

6380
# install python libraries
6481

6582
# fix for pip install decode error
6683
# RUN locale-gen en_US.UTF-8
67-
ENV LC_CTYPE en_US.UTF-8
68-
ENV LC_ALL en_US.UTF-8
69-
ENV LANG en_US.UTF-8
84+
ENV LC_CTYPE=en_US.UTF-8
85+
ENV LC_ALL=en_US.UTF-8
86+
ENV LANG=en_US.UTF-8
7087
ENV LANGUAGE=en_US.UTF-8
7188

72-
RUN pip3 install setuptools
73-
RUN pip3 install wheel
74-
RUN pip3 install nose apollo==4.2.10
89+
RUN <<EOF
90+
pip3 install setuptools
91+
pip3 install wheel
92+
pip3 install nose apollo==4.2.10
93+
EOF
7594

7695
# install grails
7796
USER apollo
7897

79-
RUN curl -s get.sdkman.io | bash && \
80-
/bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && yes | sdk install grails 2.5.5" && \
81-
/bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && yes | sdk install gradle 3.2.1"
98+
RUN <<EOF
99+
curl -s https://get.sdkman.io | bash
100+
/bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && yes | sdk install grails 2.5.5"
101+
/bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && yes | sdk install gradle 3.2.1"
82102

83-
RUN /bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && /bin/bash /bin/build.sh"
103+
/bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && /bin/bash /bin/build.sh"
84104

85-
USER root
86105
# remove from webapps and copy it into a staging directory
87-
RUN rm -rf ${CATALINA_BASE}/webapps/* && \
88-
cp /apollo/apollo*.war ${CATALINA_BASE}/apollo.war
106+
rm -rf ${CATALINA_BASE}/webapps/*
107+
cp /apollo/apollo*.war ${CATALINA_BASE}/apollo.war
108+
EOF
89109

90110
ADD docker-files/createenv.sh /createenv.sh
91111
ADD docker-files/launch.sh /launch.sh
92-
CMD "/launch.sh"
112+
CMD ["/launch.sh"]

0 commit comments

Comments
 (0)