Add microscanner back for scan image
This commit is contained in:
parent
c911f56038
commit
50708b14d7
16
src/build.sh
16
src/build.sh
@ -20,8 +20,8 @@ PRE_INSTALL="./src/pre-install.sh"
|
|||||||
POST_INSTALL="./src/post-install.sh"
|
POST_INSTALL="./src/post-install.sh"
|
||||||
|
|
||||||
mkdir -p $DOCKER_ROOT
|
mkdir -p $DOCKER_ROOT
|
||||||
# MS_ROOT="${DOCKER_ROOT}/microscanner"
|
MS_ROOT="${DOCKER_ROOT}/microscanner"
|
||||||
# mkdir -p $MS_ROOT
|
mkdir -p $MS_ROOT
|
||||||
|
|
||||||
# Load pre-install
|
# Load pre-install
|
||||||
$PRE_INSTALL
|
$PRE_INSTALL
|
||||||
@ -55,10 +55,10 @@ cd -
|
|||||||
docker build --build-arg BASE_IMAGE="${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${ALPINE_VERSION}" --build-arg MS_TOKEN="${MS_TOKEN}" - <<'DOCKERFILE'
|
docker build --build-arg BASE_IMAGE="${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${ALPINE_VERSION}" --build-arg MS_TOKEN="${MS_TOKEN}" - <<'DOCKERFILE'
|
||||||
ARG BASE_IMAGE
|
ARG BASE_IMAGE
|
||||||
FROM $BASE_IMAGE
|
FROM $BASE_IMAGE
|
||||||
# ARG MS_TOKEN
|
ARG MS_TOKEN
|
||||||
# RUN wget https://get.aquasec.com/microscanner -O /home/cubetiq/microscanner \
|
RUN wget https://get.aquasec.com/microscanner -O /home/cubetiq/microscanner \
|
||||||
# && echo "8e01415d364a4173c9917832c2e64485d93ac712a18611ed5099b75b6f44e3a5 /home/cubetiq/microscanner" | sha256sum -c - \
|
&& echo "8e01415d364a4173c9917832c2e64485d93ac712a18611ed5099b75b6f44e3a5 /home/cubetiq/microscanner" | sha256sum -c - \
|
||||||
# && chmod +x /home/cubetiq/microscanner \
|
&& chmod +x /home/cubetiq/microscanner \
|
||||||
# && /home/cubetiq/microscanner $MS_TOKEN \
|
&& /home/cubetiq/microscanner $MS_TOKEN \
|
||||||
# && rm -r /home/cubetiq/microscanner
|
&& rm -r /home/cubetiq/microscanner
|
||||||
DOCKERFILE
|
DOCKERFILE
|
Loading…
Reference in New Issue
Block a user