Skip to content

Commit b2156ba

Browse files
committed
added static build and references to docker image
1 parent 55f59a1 commit b2156ba

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ server:
1414
mkdir -p $(BINDIR)
1515
go build -ldflags "-X 'continuity/server/version.Version=$(VERSION)'" -o $(BINDIR)/continuity-server_$(VERSION) ./server/cmd
1616

17+
server-static:
18+
mkdir -p $(BINDIR)
19+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w -X 'continuity/server/version.Version=$(VERSION)'" -o $(BINDIR)/continuity-server-static_$(VERSION) ./server/cmd
20+
1721
client:
1822
mkdir -p $(BINDIR)
1923
go build -ldflags "-X 'continuity/client/version.Version=$(VERSION)'" -o $(BINDIR)/continuity_$(VERSION) ./client/cmd
@@ -153,12 +157,12 @@ docker-client-rpm: client
153157

154158
docker-release: server
155159
docker build -t continuity-server -f Dockerfile .
156-
docker tag continuity-server continuity/continuity-server:$(VERSION)
160+
docker tag continuity-server acamb23/continuity-server:$(VERSION)
157161

158162
docker-publish: docker-release
159-
docker push continuity/continuity-server:$(VERSION)
163+
docker push acamb23/continuity-server:$(VERSION)
160164

161-
release: server client client-windows docker-server-deb docker-client-deb docker-server-rpm docker-client-rpm
165+
release: server server-static client client-windows docker-server-deb docker-client-deb docker-server-rpm docker-client-rpm
162166

163167
check:
164168
cd server/api && go test -v ./... && cd ..

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ The CLI client is also available for Windows.
2323
The simplest way to run Continuity is via Docker. You can pull the latest image from Docker Hub:
2424

2525
```bash
26-
docker pull acamb/continuity:latest
26+
docker pull acamb23/continuity:latest
2727
```
2828

2929
Then, run the container with your configuration file mounted:
3030

3131
```bash
32-
docker run -d -p 80:80 -v /path/to/continuity.yaml:/opt/continuity/config.yaml acamb/continuity:latest
32+
docker run -d -p 80:80 -v /path/to/continuity.yaml:/opt/continuity/config.yaml acamb23/continuity:latest
3333
```
3434

3535
or using docker-compose:
3636

3737
```yaml
3838
services:
3939
continuity:
40-
image: acamb/continuity:latest
40+
image: acamb23/continuity:latest
4141
ports:
4242
- "80:80"
4343
volumes:

0 commit comments

Comments
 (0)