This project deploys the static Apache + Entra ID server on the OpenShift
project blogs-wiki-prod.
The container image used on the cluster is built from the Dockerfile in the
GitLab repository.
Copy the file envExemple to .env and set the required environment variables.
To deploy to dev, test, or prod, you must first build the image.
-
Set the image name and version in your
.envfile:IMGVERSIONIMAGE_NAME
-
Build the image:
make build
- Push the image:
make push
Set the following variables in your .env file:
OIDC_CLIENT_ID=""
OIDC_CLIENT_SECRET=""
OIDC_PROVIDER_URL=""
OIDC_SECRET=""
Then start the application locally:
make up
The application will be available on port 8080.
To deploy on the blogs-test.fsd.epfl.ch environment:
- Update the
versionvariable in
ocsrc/roles/blogs/varsto match the version of your built image. - Deploy with:
./ocsrc/blogsible
- The application will be deployed on
blogs-test.fsd.epfl.ch.
To deploy on the blogs.epfl.ch environment:
- Update the
versionvariable in
ocsrc/roles/blogs/varsto match the version of your built image. - Deploy with:
./ocsrc/blogsible --prod
- The application will be deployed on
blogs.epfl.ch.