Commit 4655e978 authored by Yakubov, Sergey's avatar Yakubov, Sergey
Browse files

add dockerfile

parent 96a04e4d
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+49 −0
Original line number Diff line number Diff line
.idea
#Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
bin/
build/
develop-eggs/
dist/
eggs/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Django stuff:
*.log
*.pot

# Sphinx documentation
docs/_build/

.gitlab-ci.yml

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

variables:
  GIT_STRATEGY: clone
  IMAGE_NAME: ${NDIP_DOCKER_REPOSITORY}/${CI_PROJECT_PATH}

before_script:
  - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O
  - docker login -u $NDIP_DOCKER_USER -p $NDIP_DOCKER_PASSWORD $NDIP_DOCKER_REPOSITORY
  - 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.0"
    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

data/result.nc

0 → 100644
+2.64 MiB

File added.

No diff preview for this file type.

dockerfiles/Dockerfile

0 → 100644
+6 −0
Original line number Diff line number Diff line
FROM --platform=amd64 regproxy.ornl.gov/hub_proxy/ubuntu:22.04

COPY ./data/result.nc /data