Skip to content

Sandbox mimicking AGH's pascal server environment

Notifications You must be signed in to change notification settings

AdamBalski/pascalvania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker dev environment that replicates AGH university's pascal server environment

Motivation

The server environment is not easy to develop on, it is not necessarily easy to view the effects and connect to the http port either (relatively). This aims to solve the problem, by reducing the need to connect to pascal at all, except for deployments.

The workflow can be as follows:

  1. Build (once)
  2. On a development session's start, run the image
  3. Make changes and see them live at localhost:80 (hot reloading)
  4. Deploy on dev session end (if needed of course)

Environment description

Server is a debian with apache2 installed with plugins: cgi, userdir, rewrite, php8.2, and wsgi. Check Dockerfile for details.

How-tos

Build

docker build --build-arg USERNAME=user -t pascal-dev .

Run dev environment locally and make it listen on localhost:80

docker run --rm -it -p 80:80 -v $(pwd)/home:/home/user pascal-dev

Deploy directly to the uni remote server (assumes you have ssh keys installed)

REMOTE_USER=name REMOTE_HOST=pascal.somewhere.pl ./deploy.sh

About

Sandbox mimicking AGH's pascal server environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published