Docker image packaging for cheesy-parts.
This image depends on MySQL, and requires some environment variables (below).
The image can be built and run with:
docker build --tag argonauts/cheesy-parts .
docker run \
--publish 9000:9000 \
--env MYSQL_DATABASE=cheesy_parts \
--env MYSQL_USER=team254 \
--env MYSQL_PASSWORD=correcthorsebatterystaple \
argonauts/cheesy-parts
The following environment variables can be configured:
PORT
: HTTP portMYSQL_HOST
: MySQL hostname (default:localhost
)MYSQL_DATABASE
: MySQL database nameMYSQL_USER
: MySQL usernameMYSQL_PASSWORD
: MySQL password
The easiest way to run this image with MySQL is with Docker Compose:
mkdir mysql
docker compose up --build
Edit docker-compose.yml to change the MySQL credentials.
The MySQL data directory is mounted to ./mysql
by default.
Heroku is an easy and typically free way to host web applications, including the database. At the root of this project is a setup script heroku.sh
that can do all the app setup needed:
./heroku.sh <app_name>
This project is under the GNU Generic Public License v3 to allow free use while ensuring it stays open.