Skip to content

Commit

Permalink
Merge pull request #259 from FraunhoferISST/ci/nginx-version
Browse files Browse the repository at this point in the history
ci(frontend/Dockerfile): change from stable-alpine to alpine for nginx
  • Loading branch information
mhellmeier authored Feb 22, 2024
2 parents 146a678 + ec5820b commit fbe130a
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 25 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ The project is made of a backend and a frontend. Look into the respective folder
information about prerequirements and getting started guides.

## License

The project is licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
For details on the licensing terms, see the `LICENSE` file.

## Notice for Docker Image

This application provides container images for demonstration purposes.

Eclipse Tractus-X product(s) installed within the image:
Expand All @@ -25,15 +27,20 @@ Eclipse Tractus-X product(s) installed within the image:
- Project license: [Apache License, Version 2.0](https://github.com/eclipse-tractusx/puris/blob/main/LICENSE)

**Used Base Image [Frontend]**
- `node:lts-alpine`
- DockerHub: https://hub.docker.com/_/node/
- GitHub project: https://github.com/nodejs/docker-node

`nginxinc/nginx-unprivileged:alpine`

- DockerHub: https://hub.docker.com/r/nginxinc/nginx-unprivileged
- GitHub project: https://github.com/nginxinc/docker-nginx-unprivileged

**Used Base Image [Backend]**
- `maven:3.8.7-eclipse-temurin-17`
- DockerHub: https://hub.docker.com/_/maven/
- GitHub project: https://github.com/carlossg/docker-maven
`eclipse-temurin:17-jre-alpine`

- DockerHub: https://hub.docker.com/_/eclipse-temurin
- GitHub project: https://github.com/adoptium/containers

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc
from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies
with any relevant licenses for all software contained within.
19 changes: 12 additions & 7 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
</div>

## Table of Contents

- [Prerequirements](#prerequirements)
- [Getting Started](#getting-started)
- [License](#license)


## Prerequirements

The following things are needed to start PURIS:

- A Java Runtime Environment + Maven or an equivalent Docker setup
Expand All @@ -21,10 +22,12 @@ The following things are needed to start PURIS:
See the [installation instructions](INSTALL.md) for information on how to start the application.

## License

The project is licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
For details on the licensing terms, see the `LICENSE` file.

## Notice for Docker Image

This application provides container images for demonstration purposes.

Eclipse Tractus-X product(s) installed within the image:
Expand All @@ -34,12 +37,14 @@ Eclipse Tractus-X product(s) installed within the image:
- Dockerfile Backend: https://github.com/eclipse-tractusx/puris/blob/main/backend/Dockerfile
- Project license: [Apache License, Version 2.0](https://github.com/eclipse-tractusx/puris/blob/main/backend/LICENSE)


**Used Base Image [Backend]**
- `maven:3.8.7-eclipse-temurin-17`
- DockerHub: https://hub.docker.com/_/maven/
- GitHub project: https://github.com/carlossg/docker-maven
`eclipse-temurin:17-jre-alpine`

- DockerHub: https://hub.docker.com/_/eclipse-temurin
- GitHub project: https://github.com/adoptium/containers

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc
from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies
with any relevant licenses for all software contained within.
10 changes: 6 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Copyright (c) 2022,2023 Volkswagen AG
# Copyright (c) 2022,2023 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer ISST)
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
# Copyright (c) 2022-2024 Volkswagen AG
# Copyright (c) 2022-2024 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer ISST)
# Copyright (c) 2022-2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand Down Expand Up @@ -47,7 +47,7 @@ COPY NOTICE.md /app/dist/NOTICE.md
COPY DEPENDENCIES /app/dist/DEPENDENCIES

# uses 101 restricted user
FROM nginxinc/nginx-unprivileged:stable-alpine
FROM nginxinc/nginx-unprivileged:alpine
#FROM nginx:stable-alpine

# commly it would be .../html/js/.*js, but due to the project structure the JS files are in .../html/assets
Expand All @@ -64,6 +64,8 @@ RUN apk --no-cache add moreutils
# use non-root user
USER 101

HEALTHCHECK --interval=30s --timeout=3s CMD wget -O /dev/null http://localhost:8080 || exit 1

WORKDIR /usr/share/nginx/html
COPY --from=build /app/dist .
ENTRYPOINT [ "start-nginx.sh" ]
Expand Down
18 changes: 12 additions & 6 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
</div>

## Table of Contents

- [Prerequirements](#prerequirements)
- [Getting Started](#getting-started)
- [License](#license)


## Prerequirements

The following things are needed to start PURIS:

- `npm` or an equivalent Docker setup
Expand All @@ -20,10 +21,12 @@ The following things are needed to start PURIS:
See the [installation instructions](INSTALL.md) for information on how to start the application.

## License

The project is licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
For details on the licensing terms, see the `LICENSE` file.

## Notice for Docker Image

This application provides container images for demonstration purposes.

Eclipse Tractus-X product(s) installed within the image:
Expand All @@ -34,10 +37,13 @@ Eclipse Tractus-X product(s) installed within the image:
- Project license: [Apache License, Version 2.0](https://github.com/eclipse-tractusx/puris/blob/main/frontend/LICENSE)

**Used Base Image [Frontend]**
- `node:lts-alpine`
- DockerHub: https://hub.docker.com/_/node/
- GitHub project: https://github.com/nodejs/docker-node
`nginxinc/nginx-unprivileged:alpine`

- DockerHub: https://hub.docker.com/r/nginxinc/nginx-unprivileged
- GitHub project: https://github.com/nginxinc/docker-nginx-unprivileged

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc
from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies
with any relevant licenses for all software contained within.

0 comments on commit fbe130a

Please sign in to comment.