mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
update circleci to build image from source
This commit is contained in:
parent
60213f1551
commit
2b2338805b
11
Dockerfile
11
Dockerfile
@ -1,10 +1,3 @@
|
||||
FROM quay.io/vektorcloud/glibc:latest
|
||||
|
||||
ARG CTOP_VERSION=0.5
|
||||
ENV CTOP_URL https://github.com/bcicen/ctop/releases/download/v${CTOP_VERSION}/ctop-${CTOP_VERSION}-linux-amd64
|
||||
|
||||
RUN echo $CTOP_URL && \
|
||||
wget -q $CTOP_URL -O /ctop && \
|
||||
chmod +x /ctop
|
||||
|
||||
FROM scratch
|
||||
COPY ./ctop /ctop
|
||||
ENTRYPOINT ["/ctop"]
|
||||
|
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ build-all:
|
||||
image:
|
||||
docker build -t ctop_build -f Dockerfile_build .
|
||||
docker run -ti --rm -v $(shell pwd):/target ctop_build cp -v /go/bin/ctop /target/
|
||||
docker build -t ctop -f Dockerfile_minimal .
|
||||
docker build -t ctop -f Dockerfile .
|
||||
|
||||
release:
|
||||
mkdir release
|
||||
|
@ -7,7 +7,7 @@ machine:
|
||||
dependencies:
|
||||
override:
|
||||
- docker info
|
||||
- docker build --build-arg CTOP_VERSION=$(cat VERSION) -t ctop .
|
||||
- make image
|
||||
|
||||
test:
|
||||
override:
|
||||
|
Loading…
Reference in New Issue
Block a user