rename repo, snapcraft

pull/497/head
hunterlong 2020-04-15 03:07:48 -07:00
parent 8f401e0a74
commit 1caa1d9ba3
16 changed files with 44 additions and 57 deletions

View File

@ -20,4 +20,4 @@ A clear and concise description of what you expected to happen.
### Screenshots ### Screenshots
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping) [![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/statping/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/statping/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)

View File

@ -19,4 +19,4 @@ I'm always frustrated when [...]
### Additional context ### Additional context
Add any other context or screenshots about the feature request here. Add any other context or screenshots about the feature request here.
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping) [![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/statping/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)

View File

@ -270,38 +270,25 @@ sign-all:
valid-sign: valid-sign:
gpg --verify statping.asc gpg --verify statping.asc
# install xgo and pull the xgo docker image
xgo-install: clean
go get github.com/crazy-max/xgo
docker pull crazymax/xgo:${GOVERSION}
sentry-release: sentry-release:
sentry-cli releases new -p backend -p frontend v${VERSION} sentry-cli releases new -p backend -p frontend v${VERSION}
sentry-cli releases set-commits --auto v${VERSION} sentry-cli releases set-commits --auto v${VERSION}
sentry-cli releases finalize v${VERSION} sentry-cli releases finalize v${VERSION}
snapcraft: clean snapcraft-build snapcraft-release snapcraft: clean compile build-bin
snapcraft-build: build-all
PWD=$(shell pwd) PWD=$(shell pwd)
cp build/$(BINARY_NAME)-linux-x64.tar.gz build/$(BINARY_NAME)-linux.tar.gz
snapcraft clean statping -s pull snapcraft clean statping -s pull
docker run --rm -v ${PWD}:/build -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=amd64" docker run --rm -v ${PWD}/build/statping-linux-amd64.tar.gz:/build/statping-linux.tar.gz -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=amd64"
cp build/$(BINARY_NAME)-linux-x32.tar.gz build/$(BINARY_NAME)-linux.tar.gz
snapcraft clean statping -s pull snapcraft clean statping -s pull
docker run --rm -v ${PWD}:/build -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=i386" docker run --rm -v ${PWD}/build/statping-linux-386.tar.gz:/build/statping-linux.tar.gz -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=i386"
cp build/$(BINARY_NAME)-linux-arm64.tar.gz build/$(BINARY_NAME)-linux.tar.gz
snapcraft clean statping -s pull snapcraft clean statping -s pull
docker run --rm -v ${PWD}:/build -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=arm64" docker run --rm -v ${PWD}/build/statping-linux-arm64.tar.gz:/build/statping-linux.tar.gz -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=arm64"
cp build/$(BINARY_NAME)-linux-arm7.tar.gz build/$(BINARY_NAME)-linux.tar.gz
snapcraft clean statping -s pull snapcraft clean statping -s pull
docker run --rm -v ${PWD}:/build -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=armhf" docker run --rm -v ${PWD}/build/statping-linux-arm.tar.gz:/build/statping-linux.tar.gz -w /build --env VERSION=${VERSION} snapcore/snapcraft bash -c "apt update && snapcraft --target-arch=armhf"
rm -f build/$(BINARY_NAME)-linux.tar.gz snapcraft push statping_${VERSION}_amd64.snap --release stable
snapcraft-release:
snapcraft push statping_${VERSION}_arm64.snap --release stable snapcraft push statping_${VERSION}_arm64.snap --release stable
snapcraft push statping_${VERSION}_i386.snap --release stable snapcraft push statping_${VERSION}_i386.snap --release stable
snapcraft push statping_${VERSION}_armhf.snap --release stable snapcraft push statping_${VERSION}_armhf.snap --release stable
.PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details lite sentry-release .PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details lite sentry-release snapcraft build-bin build-win build-all
.SILENT: travis_s3_creds .SILENT: travis_s3_creds

View File

@ -2,6 +2,6 @@
"name": "Statping", "name": "Statping",
"description": "Statping Server Monitoring with Status Page", "description": "Statping Server Monitoring with Status Page",
"repository": "https://github.com/statping/statping", "repository": "https://github.com/statping/statping",
"logo": "https://raw.githubusercontent.com/hunterlong/statping/master/source/tmpl/banner.png", "logo": "https://raw.githubusercontent.com/statping/statping/master/source/tmpl/banner.png",
"keywords": ["statping", "server", "monitoring", "status page","golang", "go"] "keywords": ["statping", "server", "monitoring", "status page","golang", "go"]
} }

View File

@ -349,7 +349,7 @@ func HelpEcho() {
} }
func checkGithubUpdates() (githubResponse, error) { func checkGithubUpdates() (githubResponse, error) {
url := "https://api.github.com/repos/hunterlong/statping/releases/latest" url := "https://api.github.com/repos/statping/statping/releases/latest"
contents, _, err := utils.HttpRequest(url, "GET", nil, nil, nil, time.Duration(2*time.Second), true) contents, _, err := utils.HttpRequest(url, "GET", nil, nil, nil, time.Duration(2*time.Second), true)
if err != nil { if err != nil {
return githubResponse{}, err return githubResponse{}, err

4
dev/Dockerfile.dev vendored
View File

@ -7,7 +7,7 @@ RUN npm install -g yarn
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \ RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
chmod +x /usr/local/bin/sass chmod +x /usr/local/bin/sass
WORKDIR /go/src/github.com/hunterlong/statping WORKDIR /go/src/github.com/statping/statping
ADD go.mod go.sum version.txt ./ ADD go.mod go.sum version.txt ./
@ -22,7 +22,7 @@ ADD frontend/package.json frontend/yarn.lock ./frontend/
RUN cd frontend && yarn install --pure-lockfile --network-timeout 1000000 && yarn cache clean RUN cd frontend && yarn install --pure-lockfile --network-timeout 1000000 && yarn cache clean
ENV IS_DOCKER=true ENV IS_DOCKER=true
ENV STATPING_DIR=/go/src/github.com/hunterlong/statping ENV STATPING_DIR=/go/src/github.com/statping/statping
EXPOSE 8585 EXPOSE 8585
EXPOSE 8888 EXPOSE 8888

View File

@ -21,7 +21,7 @@ services:
# COMMIT: DEV # COMMIT: DEV
# restart: on-failure # restart: on-failure
# volumes: # volumes:
# - ./:/go/src/github.com/hunterlong/statping # - ./:/go/src/github.com/statping/statping
# environment: # environment:
# VIRTUAL_HOST: local.statping.com # VIRTUAL_HOST: local.statping.com
# VIRTUAL_PORT: 8888 # VIRTUAL_PORT: 8888

View File

@ -4,19 +4,19 @@ services:
statping_dev: statping_dev:
container_name: statping_dev container_name: statping_dev
image: hunterlong/statping:dev image: statping/statping:dev
restart: on-failure restart: on-failure
volumes: volumes:
- ./cmd:/go/src/github.com/hunterlong/statping/cmd/ - ./cmd:/go/src/github.com/statping/statping/cmd/
- ./core:/go/src/github.com/hunterlong/statping/core/ - ./core:/go/src/github.com/statping/statping/core/
- ./database:/go/src/github.com/hunterlong/statping/database/ - ./database:/go/src/github.com/statping/statping/database/
- ./dev:/go/src/github.com/hunterlong/statping/dev/ - ./dev:/go/src/github.com/statping/statping/dev/
- ./frontend:/go/src/github.com/hunterlong/statping/frontend/ - ./frontend:/go/src/github.com/statping/statping/frontend/
- ./handlers:/go/src/github.com/hunterlong/statping/handlers/ - ./handlers:/go/src/github.com/statping/statping/handlers/
- ./notifiers:/go/src/github.com/hunterlong/statping/notifiers/ - ./notifiers:/go/src/github.com/statping/statping/notifiers/
- ./source:/go/src/github.com/hunterlong/statping/source/ - ./source:/go/src/github.com/statping/statping/source/
- ./types:/go/src/github.com/hunterlong/statping/types/ - ./types:/go/src/github.com/statping/statping/types/
- ./utils:/go/src/github.com/hunterlong/statping/utils/ - ./utils:/go/src/github.com/statping/statping/utils/
environment: environment:
DB_CONN: sqlite DB_CONN: sqlite
API_KEY: exampleapikey API_KEY: exampleapikey

View File

@ -612,5 +612,5 @@
"title": "Statping", "title": "Statping",
"uid": "6BzRjddmz", "uid": "6BzRjddmz",
"version": 25, "version": 25,
"description": "Monitor your websites and applications using Statping service. View more information at https://github.com/hunterlong/statping" "description": "Monitor your websites and applications using Statping service. View more information at https://github.com/statping/statping"
} }

8
dev/init.sh vendored
View File

@ -12,7 +12,7 @@
cd /home/ubuntu cd /home/ubuntu
source /home/ubuntu/.profile source /home/ubuntu/.profile
sudo rm -rf startup.sh > /dev/null sudo rm -rf startup.sh > /dev/null
sudo curl -o startup.sh -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/hunterlong/statping/master/dev/startup.sh > /dev/null sudo curl -o startup.sh -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/statping/statping/master/dev/startup.sh > /dev/null
sudo chmod +x startup.sh > /dev/null sudo chmod +x startup.sh > /dev/null
sudo rm -f docker-compose.yml > /dev/null sudo rm -f docker-compose.yml > /dev/null
@ -21,7 +21,7 @@ EC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4)
if [ "$LETSENCRYPT_HOST" = "" ] if [ "$LETSENCRYPT_HOST" = "" ]
then then
sudo curl -o docker-compose.yml -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/hunterlong/statping/master/dev/docker-compose-single.yml > /dev/null sudo curl -o docker-compose.yml -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/statping/statping/master/dev/docker-compose-single.yml > /dev/null
else else
printf " \n\n\n\nDomain found for SSL certificate - $LETSENCRYPT_HOST\n" printf " \n\n\n\nDomain found for SSL certificate - $LETSENCRYPT_HOST\n"
printf "================================================================================================================\n" printf "================================================================================================================\n"
@ -33,7 +33,7 @@ else
printf " A $LETSENCRYPT_HOST => $EC_IP (or use A record if you are using an Elastic IP)\n" printf " A $LETSENCRYPT_HOST => $EC_IP (or use A record if you are using an Elastic IP)\n"
printf "================================================================================================================\n\n\n" printf "================================================================================================================\n\n\n"
sudo curl -o docker-compose.yml -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/hunterlong/statping/dev/docker-compose-ssl.yml > /dev/null sudo curl -o docker-compose.yml -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/statping/statping/dev/docker-compose-ssl.yml > /dev/null
fi fi
sudo service docker start > /dev/null sudo service docker start > /dev/null
@ -49,7 +49,7 @@ fi
sudo docker system prune -af > /dev/null sudo docker system prune -af > /dev/null
sudo curl https://raw.githubusercontent.com/hunterlong/statping/dev/init.sh > /home/ubuntu/init.sh sudo curl https://raw.githubusercontent.com/statping/statping/dev/init.sh > /home/ubuntu/init.sh
sudo chmod +x /home/ubuntu/init.sh > /dev/null sudo chmod +x /home/ubuntu/init.sh > /dev/null
printf "\n\n\n\n\n Statping Status Page on EC2\n" printf "\n\n\n\n\n Statping Status Page on EC2\n"

2
dev/install.sh vendored
View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
OS=osx OS=osx
ARCH=x64 ARCH=x64
REPO=github.com/hunterlong/statping REPO=github.com/statping/statping
VERSION=$(curl -s "https://$REPO/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}') VERSION=$(curl -s "https://$REPO/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
if [ `getconf LONG_BIT` = "64" ] if [ `getconf LONG_BIT` = "64" ]
then then

2
dev/postman.json vendored
View File

@ -2164,7 +2164,7 @@
"response": [] "response": []
} }
], ],
"description": "Statping contains multiple notifiers that will send you a notification whenever a service become offline, or online. You can create your own 3rd party notifier by reading more on the [Notifiers Wiki](https://github.com/hunterlong/statping/wiki/Notifiers) on the Github repo.", "description": "Statping contains multiple notifiers that will send you a notification whenever a service become offline, or online. You can create your own 3rd party notifier by reading more on the [Notifiers Wiki](https://github.com/statping/statping/wiki/Notifiers) on the Github repo.",
"auth": { "auth": {
"type": "bearer", "type": "bearer",
"bearer": [ "bearer": [

View File

@ -1,13 +1,13 @@
https://demo.statping.com/ https://demo.statping.com/
https://github.com/hunterlong/statping https://github.com/statping/statping
https://statping.com https://statping.com
https://hub.docker.com/r/hunterlong/statping/ https://hub.docker.com/r/statping/statping/
https://godoc.org/github.com/hunterlong/statping https://godoc.org/github.com/statping/statping
https://hub.docker.com/r/hunterlong/statping/ https://hub.docker.com/r/statping/statping/
https://goreportcard.com/report/github.com/hunterlong/statping https://goreportcard.com/report/github.com/statping/statping
http://slack.statping.com http://slack.statping.com
https://www.google.com/search?q=do+a+barrel+roll https://www.google.com/search?q=do+a+barrel+roll
https://travis-ci.com/hunterlong/statping https://travis-ci.com/statping/statping
https://vue.statping.com https://vue.statping.com
http://gorm.io http://gorm.io
https://www.youtube.com/watch?v=mLOdar3jshI https://www.youtube.com/watch?v=mLOdar3jshI

4
doc.go
View File

@ -8,7 +8,7 @@
// the zip file from the latest releases link. // the zip file from the latest releases link.
// //
// // MacOS using homebrew // // MacOS using homebrew
// brew tap hunterlong/statping // brew tap statping/statping
// brew install statping // brew install statping
// //
// // Linux installation // // Linux installation
@ -18,7 +18,7 @@
// Docker // Docker
// //
// Statping can be built in many way, the best way is to use Docker! // Statping can be built in many way, the best way is to use Docker!
// docker run -it -p 8080:8080 hunterlong/statping // docker run -it -p 8080:8080 statping/statping
// //
// Enjoy Statping and tell me any issues you might be having on Github. https://github.com/hunterlong // Enjoy Statping and tell me any issues you might be having on Github. https://github.com/hunterlong
package statping package statping

View File

@ -4,7 +4,7 @@ services:
statping: statping:
container_name: statping container_name: statping
image: hunterlong/statping:latest image: statping/statping:latest
restart: always restart: always
volumes: volumes:
- statping_data:/app - statping_data:/app

File diff suppressed because one or more lines are too long