Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
containers
tdlib-golangci
Commits
faf69cda
Verified
Commit
faf69cda
authored
Mar 02, 2019
by
Vladimir Hodakov
🔥
Browse files
Initial commit
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
faf69cda
image
:
docker:stable
variables
:
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
CONTAINER_NAME
:
lab.wtfteam.pro:4567/containers/tdlib-go
services
:
-
docker:dind
stages
:
-
build
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build
:
stage
:
build
script
:
-
source ci/set_docker_tag.sh
-
docker build -t $CONTAINER_NAME:$DOCKER_TAG .
-
docker push $CONTAINER_NAME:$DOCKER_TAG
only
:
-
tags
-
master
Dockerfile
0 → 100644
View file @
faf69cda
ARG
GOLANG_VERSION=1.12-alpine
FROM
golang:$GOLANG_VERSION AS build
LABEL
maintainer="vladimir@hodakov.me"
COPY
--from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/include/td /usr/local/include/td
COPY
--from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/lib/libtd* /usr/local/lib/
RUN
apk update
&&
apk add
--no-cache
git gcc libc-dev g++ make openssl-dev
&&
rm
-rf
/var/cache/apk/
*
README.md
0 → 100644
View file @
faf69cda
# Docker container with Go and pre-built tdlib
This image is tagged by tdlib version. Each container have latest Go version at the time of build.
ci/set_docker_tag.sh
0 → 100644
View file @
faf69cda
#!/usr/bin/env bash
if
[[
$CI_BUILD_REF_NAME
==
"master"
]]
;
then
export
DOCKER_TAG
=
latest
;
else
export
DOCKER_TAG
=
"
${
CI_BUILD_REF_NAME
}
"
;
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment