Verified Commit 22584b12 authored by Raphaël Flores's avatar Raphaël Flores
Browse files

Revert "Remove all git/bash/openssh stuff since it was useless."

This reverts commit bbb66cf7.
parent bbb66cf7
Pipeline #63273 passed with stage
in 4 minutes and 57 seconds
......@@ -7,6 +7,20 @@ image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
build-bash-git-lfs-image-with-kaniko:
stage: build
tags:
- privileged
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CONTAINER_REGISTRY_USERNAME}:${CONTAINER_REGISTRY_TOKEN} | base64)\"}}}" > /kaniko/.docker/config.json
- if [ "${CI_COMMIT_REF_SLUG}" == "master" ] ; then IMAGE_TAG=latest ; else IMAGE_TAG=${CI_COMMIT_REF_SLUG} ; fi; # build and push tag based on branch name
- /kaniko/executor --cache --cache-copy-layers --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile-bash-git-lfs --destination registry.forgemia.inra.fr/urgi-is/docker-rare/bash-git-lfs:${IMAGE_TAG}
only:
changes:
- .gitlab-ci.yml
- DockerFile-bash-git-lfs
docker-browsers-image-with-kaniko:
stage: build
tags:
......
FROM alpine
RUN apk update && apk upgrade && \
apk add --no-cache git git-lfs bash openssh-client
......@@ -32,6 +32,15 @@ Docker must be installed and running, look at the [official documentation](https
### Build the image
#### Bash/git/git-lfs/openssh-client image
This image is used for deploying DataDiscovery synonyms into Elasticsearch cluster.
```sh
# For ForgeMIA
$ docker build -t registry.forgemia.inra.fr/urgi-is/docker-rare/bash-git-lfs:latest -f Dockerfile-bash-git-lfs .
```
#### Docker RARe
Once the DockerFile is modified, rebuild the Docker image from the `docker-rare` directory:
......@@ -90,6 +99,8 @@ You must be part of the [`urgi` organization](https://hub.docker.com/u/urgi/) in
Then push the images to ForgeMIA:
```sh
$ docker push registry.forgemia.inra.fr/urgi-is/docker-rare/bash-git-lfs:latest
$ docker push registry.forgemia.inra.fr/urgi-is/docker-rare/docker-browsers:latest
...
$ docker push registry.forgemia.inra.fr/urgi-is/docker-rare/docker-gnpis-flower:latest
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment