Skip to content
Snippets Groups Projects
Commit 11e36733 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Adding juggler container build

- Adding docker build  which should help speed up running of dependent
pipelines, which otherwise would need to build everything for each  job.
- New version 0.3.1
parent 12073be9
Branches
Tags v0.3.1
No related merge requests found
......@@ -7,6 +7,7 @@ default:
stages:
- build
- container
- run
compile:
......@@ -34,3 +35,25 @@ compile:
# - silicon
# script:
# - ./build/run gaudirun.py JugBase/tests/options/simple_reader.py
docker_image:
image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
stage: container
tags:
- sodium
only:
- master
- ci_dev
script:
- cd containers/docker && make release-latest
docker_tag:
image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
stage: container
tags:
- sodium
only:
- tags
script:
- cd containers/docker && make release
cmake_minimum_required(VERSION 3.2.0)
cmake_minimum_required(VERSION 0.3.1)
set(CMAKE_PREFIX_PATH $ENV{HOME}/lib CMAKE_PREFIX_PATH)
find_package(NPDet REQUIRED)
......
0.3.1
FROM eicweb.phy.anl.gov:4567/containers/eic_container/eic:latest
LABEL maintainer="Whitney Armstrong <warmstrong@anl.gov>" \
name="juggler" \
group="EIC/juggler" \
march="native" \
basedist="debian" \
base="eic_container/eic" \
version="2.2.2"
RUN cd /tmp \
&& git clone https://eicweb.phy.anl.gov/EIC/NPDet.git \
&& mkdir -p NPDet/build && cd NPDet/build \
&& cmake ../. -DCMAKE_CXX_STANDARD=17 \
&& make -j30 && make -j4 install \
&& cd /tmp && rm -rf /tmp/NPDet
RUN cd /tmp \
&& git clone https://eicweb.phy.anl.gov/EIC/eicd.git \
&& mkdir -p eicd/build && cd eicd/build \
&& cmake ../. -DCMAKE_CXX_STANDARD=17 \
&& make -j30 && make -j4 install \
&& cd /tmp && rm -rf /tmp/eicd
RUN cd /tmp \
&& git clone https://eicweb.phy.anl.gov/EIC/juggler.git \
&& mkdir -p juggler/build && cd juggler/build \
&& cmake ../. -DCMAKE_CXX_STANDARD=17 \
&& make -j30 && make -j4 install \
&& cd /tmp && rm -rf /tmp/juggler
# Port to run the container
REG_HOST ?= eicweb.phy.anl.gov
REG_NAME ?= eicweb.phy.anl.gov:4567
REG_PORT ?= 4567
REG_URL ?= https://$(REG_HOST)
APP_NAME = juggler
REPO_NAME = juggler
DH_ORG = argonneeic
GL_GROUP = eic
GL_REG_GROUP = eic/juggler
GL_REG_NAME = $(REG_NAME)
# INSTALL
# - copy the files deploy.env, config.env, version.sh and Makefile to your repo
# - replace the vars in deploy.env
# - define the version script
# Build the container
make build
# Build and publish the container
make release
# Publish a container to AWS-ECR.
# This includes the login to the repo
make publish
# Run the container
make run
# Build an run the container
make up
# Stop the running container
make stop
# Build the container with differnt config and deploy file
make cnf=another_config.env dpl=another_deploy.env build
\ No newline at end of file
#!/bin/bash
cat ../../VERSION | sed 's/)//'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment