domain change

pull/116/head v0.80.31
Hunter Long 2018-12-18 09:49:02 -08:00
parent 896d0b30a8
commit e87f7ca422
8 changed files with 19 additions and 29 deletions

View File

@ -5,7 +5,7 @@ ENV DEP_VERSION v0.5.0
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq
RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \ RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \
chmod +x /go/bin/dep chmod +x /go/bin/dep
RUN curl -L -s https://assets.statup.io/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/hunterlong/statping
ADD . /go/src/github.com/hunterlong/statping ADD . /go/src/github.com/hunterlong/statping

View File

@ -17,7 +17,7 @@ TEST_DIR=$(GOPATH)/src/github.com/hunterlong/statping
PATH:=$(PATH) PATH:=$(PATH)
# build all arch's and release Statping # build all arch's and release Statping
release: dev-deps build-all release: dev-deps build-all travis-build
# build and push the images to docker hub # build and push the images to docker hub
docker: docker-build-all docker-publish-all docker: docker-build-all docker-publish-all

View File

@ -1,31 +1,20 @@
ARG VERSION FROM golang:1.11-alpine as base
FROM golang:1.11-alpine
MAINTAINER "Hunter Long (https://github.com/hunterlong)" MAINTAINER "Hunter Long (https://github.com/hunterlong)"
# Statping 'test' image for running a full test using the production environment ARG VERSION
ENV DEP_VERSION v0.5.0
ENV DEP_VERSION=v0.5.0
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq
RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \ RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \
chmod +x /go/bin/dep chmod +x /go/bin/dep
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
RUN curl -L -s https://assets.statup.io/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/hunterlong/statping
ADD . /go/src/github.com/hunterlong/statping ADD . /go/src/github.com/hunterlong/statping
ENV VERSION=${VERSION}
ENV IS_DOCKER=true
RUN make dep RUN make dep
RUN make dev-deps RUN make dev-deps
RUN make install RUN make install
ENV IS_DOCKER=true
ENV STATPING_DIR=/app
WORKDIR /app WORKDIR /app
VOLUME /app
EXPOSE 8080
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD curl -s "http://localhost:8080/health" | jq -r -e ".online==true" CMD ["statping"]
ENTRYPOINT statping

1
dev/install.sh Normal file → Executable file
View File

@ -22,5 +22,6 @@ FILE="https://$REPO/releases/download/$VERSION/statping-$OS-$ARCH.tar.gz"
printf "Downloading latest version URL: $FILE\n" printf "Downloading latest version URL: $FILE\n"
curl -L -sS $FILE -o statping.tar.gz && tar xzf statping.tar.gz && rm statping.tar.gz curl -L -sS $FILE -o statping.tar.gz && tar xzf statping.tar.gz && rm statping.tar.gz
chmod +x statping chmod +x statping
echo "Installing Statping to directory: /usr/local/bin/"
mv statping /usr/local/bin/ mv statping /usr/local/bin/
echo "Statping $VERSION has been successfully installed! Try 'statping version' to check it!" echo "Statping $VERSION has been successfully installed! Try 'statping version' to check it!"

2
doc.go
View File

@ -12,7 +12,7 @@
// brew install statping // brew install statping
// //
// // Linux installation // // Linux installation
// bash <(curl -s https://assets.statup.io/install.sh) // bash <(curl -s https://assets.statping.com/install.sh)
// statping version // statping version
// //
// Docker // Docker

View File

@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1.0, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="{{block "description" .}}{{end}}"> <meta name="description" content="{{block "description" .}}{{end}}">
{{if USE_CDN}} {{if USE_CDN}}
<link rel="shortcut icon" type="image/x-icon" href="https://assets.statup.io/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="https://assets.statping.com/favicon.ico">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="https://assets.statup.io/base.css"> <link rel="stylesheet" href="https://assets.statping.com/base.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
{{ else }} {{ else }}
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

View File

@ -237,11 +237,11 @@
</div> </div>
{{end}} {{end}}
{{define "extra_css"}} {{define "extra_css"}}
<link rel="stylesheet" href="https://assets.statup.io/codemirror.css"> <link rel="stylesheet" href="https://assets.statping.com/codemirror.css">
<link rel="stylesheet" href="https://assets.statup.io/codemirror-colorpicker.css"/> <link rel="stylesheet" href="https://assets.statping.com/codemirror-colorpicker.css"/>
{{end}} {{end}}
{{define "extra_scripts"}} {{define "extra_scripts"}}
<script src="https://assets.statup.io/codemirror.js"></script> <script src="https://assets.statping.com/codemirror.js"></script>
<script src="https://assets.statup.io/css.js"></script> <script src="https://assets.statping.com/css.js"></script>
<script src="https://assets.statup.io/codemirror-colorpicker.min.js"></script> <script src="https://assets.statping.com/codemirror-colorpicker.min.js"></script>
{{end}} {{end}}

View File

@ -1 +1 @@
0.80.3 0.80.31