Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • e7669fe
  • /
  • PRIAM-Data-service
  • /
  • Dockerfile
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:3d1d7b4496e1e0d3f8d809c7096c097ce46a2487
directory badge
swh:1:dir:a690b539a7d98893d4679e71c37b8cfb6a1ddfea

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Dockerfile
# Options
## La version de l'application (le .jar)
ARG APP_VERSION="0.0.1-SNAPSHOT" 
## La version de gradle
ARG GRADLE_VERSION="8.7"
## La version du java-runtime
ARG JRE_VERSION="17"
## Pour les feignClient
ARG RIGHT_SERVICE_URL="http://localhost:8083"
ARG ACTOR_SERVICE_URL="http://localhost:8082"
ARG PROVIDER_SERVICE_URL="http://localhost"

# Image qui va créer le .jar
FROM gradle:${GRADLE_VERSION} AS builder

WORKDIR /app

# On copie tout ce qu'on a
COPY . /app

# On remplace les valeurs de l'environment par celle de docker
RUN <<EOF
    echo "
    package priam.data.priamdataservice.openfeign;

    public class Environment { 
        protected static final String right_url = \"${RIGHT_SERVICE_URL}\";
        protected static final String actor_url = \"${ACTOR_SERVICE_URL}\";
        protected static final String provider_service_url = \"${PROVIDER_SERVICE_URL}\";
    }
      " > /app/src/main/java/priam/data/priamdataservice/openfeign/Environment.java
EOF

# Build le .jar
RUN gradle assemble

# Image qui va run le code
FROM ubuntu

# Répétition pour cette image
ARG APP_VERSION
ARG JRE_VERSION

EXPOSE 8081
WORKDIR /app

# Update + installation de la JRE-17
RUN apt update && apt upgrade -y && apt install openjdk-${JRE_VERSION}-jre curl -y

# On copie les .jar qu'on a build (todo: prendre auto que la version sans le "-plain")
COPY --from=builder /app/build/libs/PRIAM-Data-service-${APP_VERSION}.jar .

# On transforme la ARG en ENV pour qu'on puisse l'utiliser dans l'entrypoint
ENV APP_VERSION_ENV=${APP_VERSION} 
# Lancement du .jar
ENTRYPOINT java -jar PRIAM-Data-service-$APP_VERSION_ENV.jar

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API