Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hervé MENAGER
galaxy-cwl-is-docker
Commits
12b005f9
Commit
12b005f9
authored
Mar 17, 2019
by
Hervé MENAGER
Browse files
kubernetes integration, first try
parent
91c6de2d
Pipeline
#10623
passed with stages
in 7 minutes and 56 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
12b005f9
image
:
docker:latest
stages
:
-
build
-
deploy
services
:
-
docker:dind
variables
:
DOCKER_HOST
:
tcp://localhost:2375
build
:
stage
:
build
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
master
tags
:
-
k8s
deploy
:
stage
:
deploy
image
:
registry-gitlab.pasteur.fr/dsi-tools/docker-images:docker_kubernetes_image
variables
:
NAMESPACE
:
"
galaxy-cwl-dev"
PUBLIC_URL
:
"
galaxy-cwl-dev.pasteur.cloud"
environment
:
name
:
galaxy-cwl-dev
url
:
https://galaxy-cwl-dev.pasteur.cloud
script
:
-
kubectl delete secret registry-gitlab -n $NAMESPACE --ignore-not-found=true
-
kubectl create secret docker-registry -n $NAMESPACE registry-gitlab --docker-server=registry-gitlab.pasteur.fr --docker-username=$DEPLOY_USER --docker-password=$DEPLOY_TOKEN --docker-email=hmenager@pasteur.fr
-
sed "s/__NAMESPACE__/${NAMESPACE}/g" manifest.yaml | kubectl apply -f -
-
kubectl patch deployment galaxy-cwl-is -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"`date +'%s'`\"}}}}}"
only
:
-
master
tags
:
-
k8s
manifest.yaml
0 → 100644
View file @
12b005f9
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
galaxy-cwl-is
spec
:
replicas
:
1
template
:
metadata
:
labels
:
app
:
__NAMESPACE__
role
:
front
spec
:
containers
:
-
name
:
galaxy-cwl-is
image
:
registry-gitlab.pasteur.fr/hub/galaxy-cwl-is:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
80
imagePullSecrets
:
-
name
:
registry-gitlab
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
galaxy-cwl-is
labels
:
app
:
__NAMESPACE__
role
:
front
spec
:
selector
:
app
:
__NAMESPACE__
role
:
front
ports
:
-
name
:
http
port
:
80
protocol
:
TCP
type
:
ClusterIP
---
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
galaxy-cwl-is
labels
:
app
:
__NAMESPACE__
role
:
front
annotations
:
kubernetes.io/ingress.class
:
"
traefik"
spec
:
rules
:
-
host
:
galaxy-cwl-dev.pasteur.cloud
http
:
paths
:
-
backend
:
serviceName
:
galaxy-cwl-is
servicePort
:
80
path
:
/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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