-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
98 changed files
with
1,104 additions
and
4,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#syntax=docker/dockerfile:1 | ||
|
||
FROM ubuntu:noble | ||
|
||
LABEL name="coatjava" | ||
LABEL maintainer="Whitney Armstrong <[email protected]>" | ||
LABEL architecture="amd64" | ||
|
||
USER root | ||
|
||
|
||
RUN apt update && apt upgrade -y | ||
RUN apt install cmake vim maven groovy git ca-certificates wget curl python-is-python3 \ | ||
openjdk-17-jdk openjdk-17-jre openjdk-17-jdk-headless openjdk-17-jre-headless \ | ||
python3-sqlalchemy -y && update-ca-certificates | ||
|
||
# CA certificates | ||
ADD https://pki.jlab.org/JLabCA.crt /etc/ssl/certs/JLabCA.crt | ||
#RUN trust anchor --store /image/JLabCA.crt | ||
|
||
ARG REF_NAME=development | ||
# build coatjava | ||
RUN java --version && cd /opt && \ | ||
git clone https://code.jlab.org/hallb/alert/coatjava.git && cd coatjava && \ | ||
git fetch origin && git checkout ${REF_NAME} && ./build-coatjava.sh --nomaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
workflow: | ||
rules: | ||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' | ||
- if: '$CI_PIPELINE_SOURCE == "web"' | ||
- if: '$CI_PIPELINE_SOURCE == "webide"' | ||
- if: '$CI_COMMIT_BRANCH == "master"' | ||
- if: '$CI_COMMIT_BRANCH == "development"' | ||
- if: '$CI_COMMIT_TAG' | ||
|
||
default: | ||
image: ubuntu:noble | ||
retry: 2 | ||
|
||
coatjava_build: | ||
image: gcr.io/kaniko-project/executor:debug | ||
script: | ||
- echo "${CI_COMMIT_REF_NAME}" | ||
- >- | ||
/kaniko/executor | ||
--context $CI_PROJECT_DIR/docker | ||
--dockerfile $CI_PROJECT_DIR/.containers/coatjava.Dockerfile | ||
--destination $CI_REGISTRY_IMAGE/coatjava:${CI_COMMIT_REF_NAME} | ||
--build-arg REF_NAME=${CI_COMMIT_REF_NAME} | ||
alert_testing: | ||
needs: ["coatjava_build"] | ||
variables: | ||
REF_NAME: "$CI_COMMIT_REF_NAME" | ||
trigger: | ||
project: hallb/alert/c12 | ||
strategy: depend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.