-
Notifications
You must be signed in to change notification settings - Fork 6
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 #21 from wtsi-npg/devel
Merge devel into master to create release 1.2
- Loading branch information
Showing
25 changed files
with
427 additions
and
59 deletions.
There are no files selected for viewing
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,49 @@ | ||
name: Publish image | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
push_to_registries: | ||
name: Push image to multiple registries | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
buildkitd-flags: --debug | ||
- | ||
name: Login to ghcr.io | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: lowercase Repo | ||
run: | | ||
echo "REPO_OWNER=${GITHUB_REPO_OWNER,,}" >>${GITHUB_ENV} | ||
env: | ||
GITHUB_REPO_OWNER: ${{ github.repository_owner }} | ||
|
||
|
||
- name: Build | ||
run: | | ||
cd docker | ||
make REPO_OWNER=${{ env.REPO_OWNER }} | ||
- name: push images | ||
run: | | ||
docker images | ||
export TAG=$(git describe --always) | ||
docker push ghcr.io/${{ env.REPO_OWNER }}/ub-16.04-base:$TAG | ||
docker push ghcr.io/${{ env.REPO_OWNER }}/ub-18.04-base:$TAG | ||
docker push ghcr.io/${{ env.REPO_OWNER }}/ub-16.04-conda:$TAG | ||
docker push ghcr.io/${{ env.REPO_OWNER }}/ub-16.04-irods-4.2.7:$TAG | ||
docker push ghcr.io/${{ env.REPO_OWNER }}/ub-18.04-irods-4.2.8:$TAG | ||
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
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,19 @@ | ||
FROM centos:7 as installer | ||
|
||
ENV GOSU_VERSION=1.11 | ||
|
||
COPY ./scripts /opt/docker/base/scripts | ||
|
||
RUN yum -y update && \ | ||
yum -y install curl | ||
|
||
RUN GOSU_VERSION=$GOSU_VERSION /opt/docker/base/scripts/install_gosu.sh && \ | ||
chmod +x /opt/docker/base/scripts/docker-entrypoint.sh | ||
|
||
FROM centos:7 | ||
|
||
COPY --from=installer /usr/local/bin/gosu /usr/local/bin/gosu | ||
COPY --from=installer /opt/docker/base/scripts/docker-entrypoint.sh \ | ||
/opt/docker/base/scripts/docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/opt/docker/base/scripts/docker-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 @@ | ||
A base image with gosu installed. |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
A base image with curl and gosu installed, intended for multi-stage | ||
builds where curl is later dropped. | ||
builds where curl is later dropped. |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
A base image with curl and gosu installed, intended for multi-stage | ||
builds where curl is later dropped. | ||
builds where curl is later dropped. |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
A base image with curl and gosu installed, intended for multi-stage | ||
builds where curl is later dropped. | ||
builds where curl is later dropped. |
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,47 @@ | ||
FROM wsinpg/centos-7-base:latest as installer | ||
|
||
ENV CONDA_GROUP_ID=32001 \ | ||
LANG=en_GB.UTF-8 \ | ||
LANGUAGE=en_GB \ | ||
LC_ALL=en_GB.UTF-8 | ||
|
||
COPY . /opt/docker/conda | ||
|
||
RUN yum -y update && \ | ||
yum -y install \ | ||
bzip2 \ | ||
glibc-langpack-en && \ | ||
localedef -i en_GB -c -f UTF-8 \ | ||
-A /usr/share/locale/locale.alias en_GB.UTF-8 && \ | ||
/opt/docker/conda/scripts/install_conda.sh && \ | ||
cp /root/.condarc /opt/conda/etc/condarc && \ | ||
chmod +x /opt/docker/conda/scripts/docker-entrypoint.sh && \ | ||
groupadd --gid $CONDA_GROUP_ID conda && \ | ||
chgrp -R conda /opt/conda && \ | ||
chmod -R g=u /opt/conda | ||
|
||
FROM wsinpg/centos-7-base:latest | ||
|
||
ENV CONDA_GROUP_ID=32001 \ | ||
LANG=en_GB.UTF-8 \ | ||
LANGUAGE=en_GB \ | ||
LC_ALL=en_GB.UTF-8 | ||
|
||
RUN yum -y update && \ | ||
yum install -y \ | ||
glibc-langpack-en \ | ||
rsync \ | ||
vim && \ | ||
localedef -i en_GB -c -f UTF-8 \ | ||
-A /usr/share/locale/locale.alias en_GB.UTF-8 && \ | ||
yum autoremove -y && \ | ||
yum -y clean all && \ | ||
groupadd -g $CONDA_GROUP_ID conda | ||
|
||
COPY --from=installer --chown=0:conda /opt/conda /opt/conda | ||
COPY --from=installer /opt/docker/conda/scripts/docker-entrypoint.sh \ | ||
/opt/docker/conda/scripts/docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/opt/docker/conda/scripts/docker-entrypoint.sh"] | ||
|
||
CMD ["/bin/bash"] |
File renamed without changes.
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
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,2 @@ | ||
A Conda package-building image with Conda, conda-build and | ||
conda-verify installed. |
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
Oops, something went wrong.