mirror of https://github.com/statping/statping
building
parent
0a526e4b4f
commit
490d339275
8
Makefile
8
Makefile
|
@ -18,6 +18,9 @@ up:
|
||||||
down:
|
down:
|
||||||
docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml down --volumes --remove-orphans
|
docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml down --volumes --remove-orphans
|
||||||
|
|
||||||
|
lite: clean
|
||||||
|
docker-compose -f dev/docker-compose.lite.yml up -d --remove-orphans
|
||||||
|
|
||||||
reup: down clean compose-build-full up
|
reup: down clean compose-build-full up
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
@ -44,6 +47,9 @@ docker-latest: docker-base
|
||||||
docker-vue:
|
docker-vue:
|
||||||
docker build -t hunterlong/statping:vue --build-arg VERSION=${VERSION} .
|
docker build -t hunterlong/statping:vue --build-arg VERSION=${VERSION} .
|
||||||
|
|
||||||
|
modd:
|
||||||
|
modd -f ./dev/modd.conf
|
||||||
|
|
||||||
top:
|
top:
|
||||||
docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml top
|
docker-compose -f docker-compose.yml -f dev/docker-compose.full.yml top
|
||||||
|
|
||||||
|
@ -104,5 +110,5 @@ print_details:
|
||||||
@echo \==== Monitoring and IDE ====
|
@echo \==== Monitoring and IDE ====
|
||||||
@echo \Grafana: http://localhost:3000 \(username: admin, password: admin\)
|
@echo \Grafana: http://localhost:3000 \(username: admin, password: admin\)
|
||||||
|
|
||||||
.PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details
|
.PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details lite
|
||||||
.SILENT: travis_s3_creds
|
.SILENT: travis_s3_creds
|
||||||
|
|
|
@ -29,7 +29,7 @@ RUN go get github.com/stretchr/testify/assert && \
|
||||||
go get gopkg.in/natefinch/lumberjack.v2 && \
|
go get gopkg.in/natefinch/lumberjack.v2 && \
|
||||||
go get golang.org/x/crypto/bcrypt && \
|
go get golang.org/x/crypto/bcrypt && \
|
||||||
go get github.com/cortesi/devd/cmd/devd && \
|
go get github.com/cortesi/devd/cmd/devd && \
|
||||||
go get github.com/cortesi/modd/cmd/modd
|
env GO111MODULE=on go get github.com/cortesi/modd/cmd/modd
|
||||||
|
|
||||||
ADD frontend/package.json frontend/yarn.lock ./frontend/
|
ADD frontend/package.json frontend/yarn.lock ./frontend/
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
version: '2.3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
statping_dev:
|
||||||
|
container_name: statping_dev
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
|
args:
|
||||||
|
VERSION: DEV
|
||||||
|
COMMIT: DEV
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- .:/go/src/github.com/hunterlong/statping:ro
|
||||||
|
environment:
|
||||||
|
DB_CONN: sqlite
|
||||||
|
API_KEY: exampleapikey
|
||||||
|
API_SECRET: exampleapisecret
|
||||||
|
NAME: Statping
|
||||||
|
DOMAIN: http://localhost:8585
|
||||||
|
DESCRIPTION: This is a dev environment with auto reloading!
|
||||||
|
ADMIN_USER: admin
|
||||||
|
ADMIN_PASS: admin
|
||||||
|
PORT: 8585
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
- 8585:8585
|
||||||
|
networks:
|
||||||
|
- statping
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -f http://localhost:8585/health || false"]
|
||||||
|
timeout: 2s
|
||||||
|
interval: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
networks:
|
||||||
|
statping:
|
Loading…
Reference in New Issue