Skip to content
Snippets Groups Projects
Commit 8b5579b2 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'base-common' into base-python

parents d249960c e5ce3c85
Branches
No related tags found
No related merge requests found
Pipeline #133771 passed
...@@ -31,6 +31,38 @@ build: ...@@ -31,6 +31,38 @@ build:
test-with-compose:
needs: [ "build"]
rules:
- if: $CI_COMMIT_BRANCH != "base-common"
variables:
CURL_ERR: "0"
before_script:
- i=0; while [ "$i" -lt 60 ]; do docker info && break; sleep 1; i=$(( i + 1 )) ; done
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
script:
- apk add --no-cache curl
- docker compose build
- docker compose up -d
- docker ps
- curl --retry-all-errors --retry 10 --retry-delay 1 -s -o /dev/null 0.0.0.0:3838 || CURL_ERR=1
- |
if [ ${CURL_ERR} == "1" ]; then
docker compose logs
exit 2
fi
# trying to create a log file
- docker exec $(basename $(pwd))-shiny-k8s-toolkit-1 touch /var/log/shiny-server/foo
- |
if [ -e logs/foo ]; then
echo "flag file created"
else
echo "cannot write in log dir with compose"
exit 3
fi
.deploy: .deploy:
rules: rules:
- if: $CI_COMMIT_BRANCH != "base-common" - if: $CI_COMMIT_BRANCH != "base-common"
......
version: '3.4'
services: services:
shiny-server: shiny-k8s-toolkit:
build: build:
context: . context: .
command: [ command: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment