Skip to content

Commit ee67a46

Browse files
authored
Merge pull request #32 from kbss-cvut/upd/technology-update
Upd/technology update
2 parents 66fdfe6 + 487350c commit ee67a46

File tree

192 files changed

+22143
-1731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+22143
-1731
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/node_modules
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Docker image
2+
on:
3+
push:
4+
branches:
5+
- master
6+
env:
7+
IMAGE_NAME: ${{ github.repository }}
8+
REGISTRY: ghcr.io
9+
jobs:
10+
build-and-publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Login to GitHub Container Registry
16+
uses: docker/login-action@v1
17+
with:
18+
registry: ${{ env.REGISTRY }}
19+
username: ${{ secrets.GITHUB_USERNAME }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Extract metadata
22+
id: meta
23+
uses: docker/metadata-action@v5
24+
with:
25+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
26+
- name: Build and push image
27+
uses: docker/build-push-action@v2
28+
with:
29+
context: .
30+
file: ./Dockerfile
31+
push: true
32+
tags: ${{ steps.meta.outputs.tags }}
33+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
target/*
88
src/main/webapp/node_modules/*
9+
src/main/webapp/build/*
10+
11+
.env

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM maven:3.9.11-eclipse-temurin-21-alpine AS builder
2+
3+
RUN apk add --no-cache nodejs npm
4+
5+
WORKDIR /app
6+
COPY pom.xml pom.xml
7+
8+
RUN mvn -B de.qaware.maven:go-offline-maven-plugin:resolve-dependencies
9+
10+
COPY src src
11+
12+
RUN mvn package -B -P production -DskipTests
13+
14+
FROM eclipse-temurin:21-jdk-alpine AS runtime
15+
16+
COPY --from=builder /app/target/dataset-dashboard.jar /app/dataset-dashboard.jar
17+
18+
WORKDIR /app
19+
20+
RUN addgroup --gid 1001 -S dd && \
21+
adduser -G dd --shell /bin/false --disabled-password -H --uid 1001 dd && \
22+
chown dd:dd /app
23+
24+
expose 8080
25+
26+
USER dd
27+
28+
ENTRYPOINT ["java", "-jar", "dataset-dashboard.jar"]

docker-compose.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
services:
2+
dataset-dashboard:
3+
# image: ghcr.io/kbss-cvut/dataset-dashboard:latest
4+
build:
5+
context: .
6+
ports:
7+
- ${PORT:-8080}:8080
8+
restart: always
9+
environment:
10+
JOPA_DDO_REPOSITORYURL: $REPOSITORY_URL
11+
JOPA_DDO_REPOSITORY_USERNAME: ${REPOSITORY_USERNAME:-''}
12+
JOPA_DDO_REPOSITORY_PASSWORD: ${REPOSITORY_PASSWORD:-''}
13+
SPIPES_SERVICE: ${SPIPES_URL:-''}
14+
RDF4JSERVERFORDESCRIPTORS: ${DESCRIPTORS_RDF4J_URL:-https://onto.fel.cvut.cz/rdf4j-server}
15+
SPIPES_SERVICE_WDRDEFSFILEURL: ${WDR_DEFS_FILE_URL:-''}
16+
SPIPES_SERVICE_WDRFILEURL: ${WDR_FILE_URL:-''}

0 commit comments

Comments
 (0)