Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker to install openSIS #293

Open
VfanLee opened this issue Jun 9, 2023 · 3 comments
Open

Docker to install openSIS #293

VfanLee opened this issue Jun 9, 2023 · 3 comments

Comments

@VfanLee
Copy link

VfanLee commented Jun 9, 2023

Here is the directory structure

├── docker-compose.yml
├── Dockerfile
├── mysql
├── opensis  # unzip opensis project
└── openSIS9.0.zip  # origin opensis project

Dockerfile

FROM php:8.2-apache

RUN docker-php-ext-install pdo_mysql mysqli
# 'opensis' is project path
COPY opensis /var/www/html

RUN chmod -R 777 /var/www/html

docker-compose.yml

version: "3"

services:
  web:
    build: .
    ports:
      - "80:80"
    networks:
      - opensis-network
    depends_on:
      - db
  db:
    image: mysql:5.7
    ports:
      - "3306:3306"
    volumes:
      - ./mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: opensis # 'opensis' is mysql password
    networks:
      - opensis-network
    command: --sql_mode=""

networks:
  opensis-network:
@kami619
Copy link

kami619 commented Aug 5, 2023

@VfanLee thanks for providing the docker assets to deploy, I was able to successfully bring up the containers but after selecting the username and password for mysql I am stuck with an empty blue page like below and don't see anything fishy in the server logs too .. I am running this on a M1 Mac, in case if that matters.

Screenshot 2023-08-05 at 12 06 16 PM
172.20.0.1 - - [05/Aug/2023:16:04:21 +0000] "GET /install/assets/images/warning.svg HTTP/1.1" 200 3644 "http://localhost/install/Step0.1.php?mod=upgrade" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.20.0.1 - - [05/Aug/2023:16:04:21 +0000] "GET /install/assets/css/installer.css?v=818 HTTP/1.1" 200 4238 "http://localhost/install/Step0.1.php?mod=upgrade" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.20.0.1 - - [05/Aug/2023:16:04:27 +0000] "GET /install/Step1.php?mod=upgrade HTTP/1.1" 200 1833 "http://localhost/install/Step0.1.php?mod=upgrade" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.20.0.1 - - [05/Aug/2023:16:04:27 +0000] "GET /install/assets/css/installer.css?v=902 HTTP/1.1" 200 4238 "http://localhost/install/Step1.php?mod=upgrade" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.20.0.1 - - [05/Aug/2023:16:04:29 +0000] "POST /install/Ins1.php?mod=upgrade HTTP/1.1" 200 337 "http://localhost/install/Step1.php?mod=upgrade" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"

@VfanLee
Copy link
Author

VfanLee commented Aug 6, 2023

In this step:

image

Please check the address of your MySQL service, and in the docker-compose.yml file I provided, the default password I set for the MySQL service is opensis

@kami619
Copy link

kami619 commented Aug 7, 2023

@VfanLee thanks I think giving an actual server ip worked instead of the localhost I was trying. I am able to complete the setup now on my M1 Mac and can confirm this docker setup works really well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants