Skip to content

docker-compose based installation - all at once

License

Notifications You must be signed in to change notification settings

spec-box/install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install

Pre-requisites

  • git
  • docker

Pull the spec-box image

docker pull docker.io/pk72/spec-box

Initialize database (ONCE!)

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

Ready to run

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

Clone the example data

git clone https://github.com/spec-box/example.git
cd example

Validate the example data

docker run -it --entrypoint npx --mount type=bind,source=./,target=/app/specs docker.io/pk72/spec-box-sync:latest spec-box validate

Sync the example data (i.e. upload to the project database).

docker run --network="host" -it --entrypoint npx --mount type=bind,source=./,target=/app/specs docker.io/pk72/spec-box-sync:latest spec-box sync

Ok, you're ready to view the results. open the browser and see the results.

http://localhost/

FOR DEVELOPERS ONLY!

Pushing an IMAGE

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

About

docker-compose based installation - all at once

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published