Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frank Schluenzen
alphafold
Commits
5b8f8d1a
Commit
5b8f8d1a
authored
Aug 11, 2021
by
Johannes Reppin
Browse files
use Kaniko instead of Docker in Docker
parent
d86e6c04
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5b8f8d1a
...
...
@@ -3,18 +3,14 @@ stages:
build-alphafold
:
stage
:
build
image
:
docker:19.03
services
:
-
name
:
docker:19.03-dind
entrypoint
:
[
"
dockerd-entrypoint.sh"
]
command
:
[
"
--mtu"
,
"
1450"
]
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
DOCKER_HOST
:
tcp://docker:2375
DOCKER_TLS_CERTDIR
:
"
"
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
docker info
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull -t $IMAGE_TAG -f docker/Dockerfile .
-
docker push $IMAGE_TAG
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
-
>
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/docker/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
docker/Dockerfile
View file @
5b8f8d1a
...
...
@@ -37,7 +37,7 @@ RUN git clone --branch v3.3.0 https://github.com/soedinglab/hh-suite.git /tmp/hh
&&
mkdir
/tmp/hh-suite/build
WORKDIR
/tmp/hh-suite/build
RUN
cmake
-DCMAKE_INSTALL_PREFIX
=
/opt/hhsuite ..
\
&&
make
-
d
&&
make
install
\
&&
make
-
j
4
&&
make
install
\
&&
ln
-s
/opt/hhsuite/bin/
*
/usr/bin
\
&&
rm
-rf
/tmp/hh-suite
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment