GitHub
01/19/2023, 10:37 PM./deploy/docker/dockerize.sh -u -b -f -J -D
[+] ROOTDIR=.
[+] DOCKERDIR=./deploy/docker
[+] Preparing certificates for osctrl
[+] Generating deploy/docker/conf/tls/osctrl.key and deploy/docker/conf/tls/osctrl.crt with OpenSSL
[+] Generated a 65 bytes JWT secret
OSCTRL_VERSION=0.3.1
OSQUERY_VERSION=5.6.0
NGINX_VERSION=1.21.1-alpine
POSTGRES_VERSION=10-alpine
POSTGRES_DB_NAME=osctrl
POSTGRES_DB_USERNAME=osctrl
POSTGRES_DB_PASSWORD=osctrl
REDIS_PASSWORD=osctrl
JWT_SECRET=
[+] Building containers from deploy/docker/docker-compose-dev.yml and using ./.env
postgres uses an image, skipping
Building osctrl-api
Sending build context to Docker daemon 7.362MB
Step 1/47 : FROM golang:latest AS osctrl-tls
---> 8295ad49803f
Step 2/47 : ENV GO111MODULE=on
---> Using cache
---> 6d8609b1626e
Step 3/47 : RUN apt-get update -y && apt-get install zip curl -y
---> Using cache
---> 366c516edee0
Step 4/47 : ARG POSTGRES_DB_NAME
---> Using cache
---> 7273ccf2cb69
Step 5/47 : ARG POSTGRES_DB_USERNAME
---> Using cache
---> 95e7d0334cd9
Step 6/47 : ARG POSTGRES_DB_PASSWORD
---> Using cache
---> 32f897bfb3bd
Step 7/47 : ARG JWT_SECRET
---> Using cache
---> 54f1464a540e
Step 8/47 : RUN useradd -ms /bin/bash osctrl-tls
---> Running in 85cfe40adc14
Removing intermediate container 85cfe40adc14
---> 5a897f7c6fae
Step 9/47 : RUN mkdir -p /opt/osctrl/
---> Running in 4228624a8af4
Removing intermediate container 4228624a8af4
---> 13d81ecd7c56
Step 10/47 : RUN mkdir -p /opt/osctrl/bin
---> Running in 8b71285c95a9
Removing intermediate container 8b71285c95a9
---> a1288275f202
Step 11/47 : RUN mkdir -p /opt/osctrl/config
---> Running in 8590ae5ca1db
Removing intermediate container 8590ae5ca1db
---> a474b1e8756f
Step 12/47 : RUN go build -o /opt/osctrl/bin/osctrl-tls tls/*.go
---> Running in 7586c50d3fad
malformed import path "tls/*.go": invalid char '*'
The command '/bin/sh -c go build -o /opt/osctrl/bin/osctrl-tls tls/*.go' returned a non-zero code: 1
ERROR: Service 'osctrl-api' failed to build : Build failed
make: *** [Makefile:170: docker_dev] Error 1
Any idea?
Thanks in advance !
jmpsec/osctrl