forked from mikolatero/docker-vlmcsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
110 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: shell | ||
os: linux | ||
arch: amd64 | ||
dist: bionic | ||
|
||
services: docker | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
script: | ||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
- docker build --pull -t alvisisme/vlmcsd . | ||
- docker push alvisisme/vlmcsd | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
FROM alvisisme/ubuntu:16.04 | ||
LABEL maintainer="Alvis Zhao<[email protected]>" | ||
FROM alpine:3.11.3 as builder | ||
WORKDIR /root | ||
RUN apk add --no-cache git make build-base && \ | ||
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \ | ||
cd vlmcsd/ && \ | ||
make | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc make wget && \ | ||
wget https://codeload.github.com/alvisisme/vlmcsd/tar.gz/svn1112 -O svn1112.tar.gz && \ | ||
tar xzf svn1112.tar.gz && \ | ||
cd vlmcsd-svn1112 && \ | ||
make && \ | ||
cp bin/vlmcsd /usr/local/bin/ && \ | ||
cp bin/vlmcs /usr/local/bin/ && \ | ||
chmod +x /usr/local/bin/vlmcsd && \ | ||
chmod +x /usr/local/bin/vlmcs && \ | ||
cd .. && \ | ||
rm -rf vlmcsd-svn1112 && \ | ||
rm svn1112.tar.gz && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
EXPOSE 1688 | ||
|
||
CMD ["/usr/local/bin/vlmcsd", "-D", "-d", "-t", "3", "-e", "-v"] | ||
FROM alpine:3.11.3 | ||
WORKDIR /root/ | ||
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd | ||
EXPOSE 1688/tcp | ||
CMD [ "/usr/bin/vlmcsd", "-D", "-d", "-t", "3", "-e", "-v" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: "3" | ||
services: | ||
kms: | ||
build: . | ||
ports: | ||
- "1688:1688" | ||
restart: always |