https://github.com/sclorg/softwarecollections
Software Collections Management Website and Utils
https://github.com/sclorg/softwarecollections
Last synced: 12 months ago
JSON representation
Software Collections Management Website and Utils
- Host: GitHub
- URL: https://github.com/sclorg/softwarecollections
- Owner: sclorg
- License: bsd-3-clause
- Created: 2013-11-20T13:27:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T12:41:24.000Z (over 3 years ago)
- Last Synced: 2024-05-14T09:20:30.898Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 3.83 MB
- Stars: 67
- Watchers: 15
- Forks: 27
- Open Issues: 19
-
Metadata Files:
- Readme: README.docker
- License: LICENSE
Awesome Lists containing this project
README
For development purposes, a Dockerfile is included. To build a Docker container, install and run Docker daemon first:
dnf -y install docker
systemctl start docker
- make sure you're in the top level directory (the one that contains Dockerfile)
- cd into this directory and build the image as `sclorgweb` (this will take some time):
docker build -t sclorgweb .
- after build is finished, run the resulting image:
docker run --name scloorgwebtest -P -d -t -v $(pwd):/srv/softwarecollections:z sclorgweb
- this will print a hash of new container
- get IP address of the new container:
docker inspect -format='{{.NetworkSettings.IPAddress}}' scloorgwebtest
- attach to the image to see the output of testing server:
docker attach scloorgwebtest
- develop (code is mounted in container, so you can code locally)
- when done developing, stop the container:
docker stop
- if you want to prune DB, just remove data/db.sqlite3