Commit 55007062 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Add gitlab-ci and Dockerfile

parents
image: docker:latest
services:
- docker:dind
variables:
CI_REGISTRY_IMAGE: "registry-gitlab.pasteur.fr/demo/online-course"
before_script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
build:
only:
- docker
stage: build
script:
- apk update ; apk add git
- git checkout master -- requirements.txt
- docker build --pull -t "$CI_REGISTRY_IMAGE:testing-ubuntu" .
- docker push "$CI_REGISTRY_IMAGE:testing-ubuntu"
from ubuntu
RUN apt-get update
# RUN yum install -y epel-release
# RUN yum install install -y python34-pip python34-devel postgresql-server gcc postgresql-devel
# ADD requirements.txt /requirements.txt
# RUN pip3 install -r requirements.txt
Markdown is supported
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