onpremises icon indicating copy to clipboard operation
onpremises copied to clipboard

Structurizr working perfectly on docker container locally(laptop) but behaves weird when hosted on OpenShift.

Open messycoder101 opened this issue 1 month ago • 6 comments

Description

Structurizr working perfectly on docker container locally(laptop) but behaves weird when hosted on openshift. http://localhost:8080/signin opens up as hosturl:8080/dashboard/signin http://localhost:8080/workspace/1 opens as http://localhost:8080/workspace/create/workspace/1

all pages have this error message: "Sorry We can't find what you're looking for."

Steps to reproduce

I have to use an arbitrary user and own the structurizr data directory which is /usr/local/structurizr. This is my dockerfile which uses structurizr/onpremises image:

# Use the official Structurizr image as a base
FROM remote-docker-hub.artifactory.COMPANY.net/structurizr/onpremises:latest as base
# Create necessary directories, change ownership and permissions
RUN mkdir -p /usr/local/structurizr && \
    chown -R 1001:0 /usr/local/structurizr && \
    chmod -R g=u /usr/local/structurizr && \
    chown -R 1001:0 /usr/local && \
    chmod -R g=u /usr/local
# Switch to a non-root user
USER 1001

I have even tried using bare minimum dockerfile like this: FROM remote-docker-hub.artifactory.COMPANY.net/structurizr/onpremises:latest It runs fine locally but has issue running on openshift which is why I had to use the arbitrary user 1001 as written above.

Screenshot

image

Code sample

FROM remote-docker-hub.artifactory.COMPANY.net/structurizr/onpremises:latest

Configuration

structurizr/onpremises:latest

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

messycoder101 avatar May 06 '24 12:05 messycoder101