aboutsummaryrefslogtreecommitdiff
path: root/ci/container/Taskfile.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/container/Taskfile.yaml')
-rw-r--r--ci/container/Taskfile.yaml37
1 files changed, 28 insertions, 9 deletions
diff --git a/ci/container/Taskfile.yaml b/ci/container/Taskfile.yaml
index 40c08ea..c497c3e 100644
--- a/ci/container/Taskfile.yaml
+++ b/ci/container/Taskfile.yaml
@@ -9,6 +9,8 @@ version: "3"
vars:
INCLUDE_FILES: "Dockerfile, docker-compose.yaml"
CERT_KEY_PARAMS: "ec -pkeyopt ec_paramgen_curve:secp384r1"
+ OUT_DIR: "{{.USER_WORKING_DIR}}/out"
+ SSL_DIR: "{{.USER_WORKING_DIR}}/ssl"
includes:
install:
@@ -18,20 +20,37 @@ includes:
tasks:
#called from inside the container to build native libraries
build-libs:
- vars:
- OUT_DIR: "{{.USER_WORKING_DIR}}/out"
- SSL_DIR: "{{.USER_WORKING_DIR}}/ssl"
- HOSTNAME:
- sh: echo $HOSTNAME
+ deps:
+ - task: build_rpmalloc
+ - task: build_argon2
+ - task: build_compres
+ - task: create_cert
+ build_rpmalloc:
+ internal: true
cmds:
- #build argon2 native library
- - cd lib/argon2/ && task && cp build/libargon2.so {{.OUT_DIR}}/libargon2.so
#build rpmalloc library and rewrite to a standard .dll extension
- - cd lib/vnlib_rpmalloc/ && task && cp build/libvn_rpmalloc.so {{.OUT_DIR}}/libvn_rpmalloc.so
+ - cmd: cd lib/vnlib_rpmalloc/ && task && cp build/libvn_rpmalloc.so {{.OUT_DIR}}/libvn_rpmalloc.so
+
+ build_argon2:
+ internal: true
+ cmds:
+ #build argon2 native library
+ - cmd: cd lib/argon2/ && task && cp build/libargon2.so {{.OUT_DIR}}/libargon2.so
+
+ build_compress:
+ internal: true
+ cmds:
#build compression and rewrite to a standard .dll extension
- - cd lib/vnlib_compress/ && task && cp build/libvn_compress.so {{.OUT_DIR}}/libvn_compress.so
+ - cmd: cd lib/vnlib_compress/ && task && cp build/libvn_compress.so {{.OUT_DIR}}/libvn_compress.so
+ create_cert:
+ internal: true
+ vars:
+ HOSTNAME:
+ sh: echo $HOSTNAME
+
+ cmds:
#create a fresh self-signed cert for the container during build
- openssl req -new -x509 -days 365 -keyout {{.SSL_DIR}}/key.pem -out {{.SSL_DIR}}/cert.pem -newkey {{.CERT_KEY_PARAMS}} --nodes -subj "/CN={{.HOSTNAME}}"
- echo "WARNING Self signed certificate created during build stage, DO NOT COPY THIS IMAGE"