Sign inSign up

teliax/phone_provisioning

By teliax

Updated over 6 years ago

Image
0

10K+

teliax/phone_provisioning repository overview

Teliax Phone Provisioning

System requirements

  • Go 1.10.2
  • Cockroach db
  • Minio Server

Installation

  1. Install dep.
  2. Run dep ensure in project root directory.
  3. define Env variables as mentioned in sample.env
  4. To run database migrations, goose -dir db/migrations/ postgres "postgres://root@localhost:26257/provision_dev?sslmode=disable" up
  5. Install and start Minio Server. Copy Sample template files are present in sample_templates folder to minio bucket.
  6. Then start server go run main.go

Tests

  • Make sure to start minio server before running tests. TODO: we dont have mock/test server for minio yet.
  • To run tests, DATABASE_URL="postgres://root@localhost:26257/provision_test?sslmode=disable" ginkgo -r

Building for Production

  • GOOS=linux GOARCH=amd64 go build
  • docker build -t provisiong:latest .
Running the Resulting Container

docker run --env-file sample.env -p 8080:8080 provision

Tag summary

Content type

Image

Digest

Size

11.5 MB

Last updated

over 6 years ago

docker pull teliax/phone_provisioning:0.1.7