Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
use the new secman v2 for secman docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Nov 6, 2021
1 parent 2f77f2a commit 7eaaf10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@

build : sm_cli sm_container

define pull_secman
@cd cli && \
wget https://docker.secman.dev/secman && \
chmod 755 secman
endef

pull:
$(call pull_secman)

sm_cli:
$(call pull_secman)

@cd cli && \
docker build -t smcr/secman-cli . && \
docker push smcr/secman-cli
Expand Down
7 changes: 5 additions & 2 deletions cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ FROM debian
### begin ###

RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y npm nodejs
RUN apt-get install -y curl sudo wget

# run `make pull_secman` before this step
COPY secman /bin/secman
RUN npm i -g secman
RUN secman init

ENTRYPOINT ["/bin/secman"]
ENTRYPOINT ["secman"]

### end ###
6 changes: 4 additions & 2 deletions container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,20 @@ RUN $UPD && $INS -y sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

### nodejs & npm ###
RUN curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh && \
RUN curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh && \
sudo bash nodesource_setup.sh && \
$INS_s nodejs build-essential -y && \
sudo rm -rf nodesource_setup.sh && \
$UPD_s
RUN npm i -g npm@latest

ENV HOME="/home/secman_yo"
WORKDIR $HOME
USER secman_yo

### secman ###
RUN curl -fsSL https://unix.secman.dev | bash
RUN sudo npm i -g secman
RUN secman init

### zsh ###
ENV src=".zshrc"
Expand Down

0 comments on commit 7eaaf10

Please sign in to comment.