- git
- docker
docker pull docker.io/pk72/spec-box
Startup database if you don't have database already.
docker run --name postgres -e POSTGRES_PASSWORD=123 -e POSTGRES_DB=tms -p 5432:5432 -d postgres
Apply the migrations (adjust the connection string if you're using your own database.
docker run -it --link postgres:postgres --entrypoint ./migrate-database docker.io/pk72/spec-box:latest postgres "host=postgres;port=5432;database=tms;user name=postgres;password=123" ./migrations/SpecBox.Migrations.dll
docker run -p 80:80 -ti \
--link postgres:postgres \
-e ConnectionStrings__default='host=postgres;port=5432;database=tms;user name=postgres;password=123' \
docker.io/pk72/spec-box:latest
git clone https://github.com/spec-box/example.git
cd example
docker run -it --entrypoint npx --mount type=bind,source=./,target=/app/specs docker.io/pk72/spec-box-sync:latest spec-box validate
docker run --network="host" -it --entrypoint npx --mount type=bind,source=./,target=/app/specs docker.io/pk72/spec-box-sync:latest spec-box sync
http://localhost/
Clone the project, and run setup.sh
git clone https://github.com/spec-box/install.git
cd install
sh ./setup.sh
Before pushing you've to login to docker hub with account which has the rights to push.
docker login
Then perform a build and push the image to latest.
docker-compose build
docker push docker.io/pk72/spec-box
And with the version tag as the following:
VERSION=0.1.1 docker push docker.io/pk72/spec-box