Commit c5a91649 authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
.idea

.gitlab-ci.yml

0 → 100644
+37 −0
Original line number Diff line number Diff line
stages:
  - build

variables:
  GIT_STRATEGY: clone
  IMAGE_NAME: ${CI_REGISTRY_IMAGE}

before_script:
  - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
  - source rse-bash-modules.sh
  - func_rse_docker_cleanup

after_script:
  - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O
  - source rse-bash-modules.sh
  - func_rse_docker_cleanup
  - sudo chown -R gitlab-runner .

build-image:
  stage: build
  variables:
    TAG: "0.1"
    FORCE_TAGS: "false"
  when: manual
  script:
    - docker build -f dockerfiles/Dockerfile -t image .
    - docker tag image ${IMAGE_NAME}:$CI_COMMIT_SHORT_SHA
    - docker push ${IMAGE_NAME}:$CI_COMMIT_SHORT_SHA
    - >
      if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ] || [ "$FORCE_TAGS" == "true" ]; then
        docker tag image ${IMAGE_NAME}:latest
        docker push ${IMAGE_NAME}:latest
        docker pull ${IMAGE_NAME}:${TAG} || docker tag image ${IMAGE_NAME}:${TAG} &&  docker push ${IMAGE_NAME}:${TAG}
      fi
  tags:
    - rse-multi-builder

README.md

0 → 100644
+5 −0
Original line number Diff line number Diff line
# 

source code 

dockerfiles/Dockerfile

0 → 100644
+15 −0
Original line number Diff line number Diff line
FROM ubuntu:20.04

RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get -y install tzdata

RUN apt-get update \
  && apt-get install -y \
      python3 \
      python3-pip \
  && apt-get clean

RUN pip3 install scipy numpy matplotlib

COPY /src /src

src/.gitkeep

0 → 100644
+0 −0

Empty file added.