Skip to content

epfl-si/blogs-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Archive on OpenShift

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.


Usage

Copy the file envExemple to .env and set the required environment variables.


Deploy

To deploy to dev, test, or prod, you must first build the image.

  1. Set the image name and version in your .env file:

    • IMGVERSION
    • IMAGE_NAME
  2. Build the image:

make build
  1. Push the image:
make push

Development (Local)

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.


Test Deployment (OpenShift 4)

To deploy on the blogs-test.fsd.epfl.ch environment:

  1. Update the version variable in
    ocsrc/roles/blogs/vars to match the version of your built image.
  2. Deploy with:
./ocsrc/blogsible
  1. The application will be deployed on
    blogs-test.fsd.epfl.ch.

Production Deployment (OpenShift 4)

To deploy on the blogs.epfl.ch environment:

  1. Update the version variable in
    ocsrc/roles/blogs/vars to match the version of your built image.
  2. Deploy with:
./ocsrc/blogsible --prod
  1. The application will be deployed on
    blogs.epfl.ch.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published