master

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: MIT

README

Apex Master

Build Status Coverage Report Go Report Card License MIT

Setup

Clone and build the server.

git clone https://gitlab.com/crdc/apex/master
cd master
make setup
make schema
make
sudo make install

Run the database migrations.

pgcli -h localhost -p 5432 -U postgres
postgres@localhost:postgres> \i data/1.0/1_users.sql
postgres@localhost:postgres> \i data/1.0/2_roles.sql
postgres@localhost:postgres> \i data/1.0/3_rel_users_roles.sql

Publishing

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
  -a -tags netgo -ldflags '-w -extldflags "-static"' \
  -o bin/plantd-master-static cmd/master/*.go
docker build -t registry.gitlab.com/plantd/master:v1 .
docker push registry.gitlab.com/plantd/master:v1
Running
docker pull registry.gitlab.com/plantd/master:v1
docker run -it --rm --name=plantd-master \
	-e PLANTD_MASTER_DB_HOST=127.0.0.1 \
  -e PLANTD_MASTER_DB_PORT=5432 \
  -e PLANTD_MASTER_DB_USER=postgres \
  -e PLANTD_MASTER_DB_PASSWORD=postgres \
  -e PLANTD_MASTER_DB_NAME=postgres \
	registry.gitlab.com/plantd/master:v1

Directories

Path Synopsis
api
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL