-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_release.conf
97 lines (81 loc) · 2.84 KB
/
create_release.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env bash
BUILD_VERSION=0.0.2
DOCKER_BUILDKIT=0
HUB_USER="zartek-creole"
HUB_HOST="ghcr.io"
# AUTHOR
AUTHOR_MAIL="[email protected]"
AUTHOR_NAME="ZarTek"
AUTHOR_WEBSITE="https://github.com/ZarTek-Creole/EggNet-Docker"
# BUILDER IMAGE
BUILDER_OS_NAME="gcc"
BUILDER_OS_VERSION="latest"
BUILDER_HUB_NAME="builder"
BUILDER_USER_UID="1000"
BUILDER_USER_GID="1000"
BUILDER_UNIX_USER="debian"
BUILDER_UNIX_GROUP="debian"
BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
GIT_OS_NAME="alpine/git"
GIT_OS_VERSION="latest"
GIT_HUB_NAME="git"
EGGNET_OS_NAME="debian"
EGGNET_OS_VERSION="stable-slim"
EGGNET_HUB_NAME="eggnet"
IMAGE_NAME_BUILDER=eggnet-"${BUILDER_HUB_NAME}"_"${BUILDER_OS_NAME}"-"${BUILDER_OS_VERSION}"
BUILD_CMD_BUILDER='
DOCKER_BUILDKIT=${DOCKER_BUILDKIT} \
docker build \
--progress=plain \
--build-arg BUILD_DATE="${BUILD_DATE}" \
--build-arg BUILD_VERSION="${BUILD_VERSION}" \
--build-arg HUB_NAME="${BUILDER_HUB_NAME}" \
--build-arg OS_NAME="${BUILDER_OS_NAME}" \
--build-arg OS_VERSION="${BUILDER_OS_VERSION}" \
--build-arg EGG_VERS="${EGG_VERS}" \
--build-arg IMAGE_NAME="${IMAGE_NAME}:${EGG_VERS}" \
--build-arg DIR_DESTINATION="eggdrop-\${EGG_VERS}" \
-t "${IMAGE_NAME_BUILDER}":"${BUILD_VERSION}" ./images/${
}
'
BUILD_CMD_GIT='
DOCKER_BUILDKIT=${DOCKER_BUILDKIT} \
docker build \
--progress=plain \
--build-arg BUILD_DATE="${BUILD_DATE}" \
--build-arg BUILD_VERSION="${BUILD_VERSION}" \
--build-arg HUB_NAME="${GIT_HUB_NAME}" \
--build-arg OS_NAME="${GIT_OS_NAME}" \
--build-arg OS_VERSION="${GIT_OS_VERSION}" \
--build-arg EGG_VERSION="${EGG_VERSION}" \
--build-arg IMAGE_NAME="${IMAGE_NAME}:${BUILD_VERSION}" \
--build-arg DIR_DESTINATION="eggdrop-${EGG_VERSION}" \
-t "${IMAGE_NAME}:${BUILD_VERSION}" ./images/${GIT_HUB_NAME}/
'
IMAGE_NAME_EGGNET=eggnet-"${EGGNET_HUB_NAME}"_"${EGGNET_OS_NAME}"-"${EGGNET_OS_VERSION}"
BUILD_CMD_EGGNET='
DOCKER_BUILDKIT="${DOCKER_BUILDKIT}" \
docker build \
--force-rm \
--progress=plain \
--build-arg BUILD_DATE="${BUILD_DATE}" \
--build-arg BUILD_VERSION="${BUILD_VERSION}" \
--build-arg OS_NAME="${EGGNET_OS_NAME}" \
--build-arg OS_VERSION="${EGGNET_OS_VERSION}" \
--build-arg HUB_NAME="${EGGNET_HUB_NAME}" \
--build-arg EGG_VERS="${EGG_VERS}" \
--build-arg IMAGE_NAME="${IMAGE_NAME_EGGNET}:${BUILD_VERSION}" \
-t "${IMAGE_NAME_EGGNET}":"${BUILD_VERSION}" ./images/${EGGNET_HUB_NAME}/
'
# BUILDER EGGDROP
BUILDER_EGG_CONFIGURE_ARGS="--disable-ipv6 --enable-tls --enable-tdns"
BUILDER_EGG_VERSION="develop"
BUILDER_EGG_MODULES_ENABLE="pbkdf2 blowfish dns channels server irc console"
BUILDER_EGGDROP_GITURL="https://github.com/eggheads/eggdrop.git"
# BUILDER PACKAGE EGGDROP
BUILDER_PKG_BUILD="tcl-dev libssl-dev"
BUILDER_PKG_EXTRA_BUILD=""
##BUILDER_PKG_RUNTIME="openssl tcl screen"
##BUILDER_PKG_PKG_EXTRA_RUNTIME=""
###
LIST_BUILD="GIT BUILD EGGNET"