Skip to content

Commit

Permalink
Merge branch 'main' into devops-deployment-6-create-and-test-noctua-d…
Browse files Browse the repository at this point in the history
…eveloper-deployment-docs
  • Loading branch information
mugitty committed Nov 1, 2024
2 parents 4ea3f3a + 2172b1a commit 2dcb30a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
shell: "docker build -f docker/Dockerfile.golr -t '{{ docker_hub_user }}/golr:{{ tag }}' amigo"

- name: build noctua container image
shell: "docker build -f docker/Dockerfile.noctua -t '{{ docker_hub_user }}/noctua:{{ tag }}' noctua"
shell: "docker build -f docker/Dockerfile.noctua -t '{{ docker_hub_user }}/noctua:{{ noctua_tag }}' noctua"

- name: build minerva container image
shell: "docker build -f docker/Dockerfile.minerva -t '{{ docker_hub_user }}/minerva:{{ tag }}' minerva"
shell: "docker build -f docker/Dockerfile.minerva -t '{{ docker_hub_user }}/minerva:{{ minerva_tag }}' minerva"
9 changes: 5 additions & 4 deletions docker-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ repo_map:
noctua: master
amigo: master

tag: latest
minerva_tag: v3
tag: latest
minerva_tag: v4

# Ubuntu based image
noctua_tag: v4
noctua_tag: v5

docker_hub_user: "{{ lookup('env', 'USER')|lower }}"
#docker_hub_user: "{{ lookup('env', 'USER')|lower }}"
docker_hub_user: geneontology
apache_proxy_image: geneontology/apache-proxy:v6
10 changes: 5 additions & 5 deletions docker/Dockerfile.minerva
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG minerva_base_image=openjdk:8-jre
ARG minerva_base_image=openjdk:17

FROM maven:3.6.3-openjdk-8 AS builder
FROM maven:3.8.5-openjdk-17 AS builder

COPY ./pom.xml ./pom.xml
COPY ./minerva-core/pom.xml ./minerva-core/pom.xml
Expand All @@ -9,13 +9,13 @@ COPY ./minerva-converter/pom.xml ./minerva-converter/pom.xml
COPY ./minerva-lookup/pom.xml ./minerva-lookup/pom.xml
COPY ./minerva-server/pom.xml ./minerva-server/pom.xml
COPY ./minerva-cli/pom.xml ./minerva-cli/pom.xml
COPY ./.git ./.git
COPY ./.git ./.git
RUN mvn dependency:go-offline package -B -am -pl minerva-server -DskipTests -Dmaven.javadoc.skip=true -Dsource.skip=true

RUN mvn dependency:go-offline package -B -am -pl minerva-cli -DskipTests -Dmaven.javadoc.skip=true -Dsource.skip=true

COPY ./ ./
RUN ./build-cli.sh
RUN ./build-cli.sh

FROM ${minerva_base_image}

Expand Down Expand Up @@ -45,7 +45,7 @@ RUN groupadd -g ${gid} gunicorn \
&& mkdir /var/minerva \
&& chown ${uid}:${gid} /var/minerva

COPY --chown=${uid}:${gid} --from=builder /minerva-cli/bin/minerva-cli.jar /app/minerva-cli.jar
COPY --chown=${uid}:${gid} --from=builder /minerva-cli/bin/minerva-cli.jar /app/minerva-cli.jar

EXPOSE 6800
USER gunicorn
Expand Down
8 changes: 5 additions & 3 deletions docker/Dockerfile.noctua
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG noctua_base_image=node:8-slim

FROM node:8-slim AS builder
FROM ubuntu:18.04 AS builder

RUN apt-get update \
&& apt-get install -y build-essential python \
&& apt-get install -y curl wget sudo
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt-get install -y build-essential nodejs build-essential python mg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -23,7 +25,7 @@ FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y curl wget sudo
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt-get install -y nodejs \
RUN apt-get install -y build-essential nodejs build-essential python mg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 2dcb30a

Please sign in to comment.