Skip to content

Commit

Permalink
Gitpod: Build OpenSCAP 1.3.6 so it can build OCP4 and EKS content.
Browse files Browse the repository at this point in the history
Additionally installs more useful VSCode extensions such as gitlens..
  • Loading branch information
ggbecker committed Feb 10, 2022
1 parent b87dd3b commit e767c23
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
34 changes: 26 additions & 8 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM gitpod/workspace-full
USER gitpod
RUN sudo apt-get update -q && \
sudo apt-get install -yq \
sudo apt-get install -yq \
cmake \
ninja-build \
libopenscap8 \
libxml2-utils \
expat \
xsltproc \
Expand All @@ -15,11 +14,30 @@ RUN sudo apt-get update -q && \
python3-github \
bats \
python3-pytest \
python3-pytest-cov
python3-pytest-cov \
libdbus-1-dev libdbus-glib-1-dev libcurl4-openssl-dev \
libgcrypt20-dev libselinux1-dev libxslt1-dev libgconf2-dev libacl1-dev libblkid-dev \
libcap-dev libxml2-dev libldap2-dev libpcre3-dev python3-dev swig libxml-parser-perl \
libxml-xpath-perl libperl-dev libbz2-dev librpm-dev g++ libapt-pkg-dev libyaml-dev \
libxmlsec1-dev libxmlsec1-openssl \
shellcheck \
bats \
yamllint

# install requirements for Sphinx packages (Developer Documentation)
RUN pip install docker ansible json2html docutils==0.17.1 \
commonmark \
recommonmark==0.6.0 \
sphinx \
sphinx-rtd-theme \
git+git://github.com/ggbecker/sphinxcontrib.jinjadomain.git#egg=sphinxcontrib-jinjadomain

RUN wget https://github.com/OpenSCAP/openscap/releases/download/1.3.6/openscap-1.3.6.tar.gz

RUN pip install docker ansible
RUN tar -zxvf openscap-1.3.6.tar.gz

RUN wget https://raw.githubusercontent.com/OpenSCAP/openscap/maint-1.3/utils/oscap-ssh && \
sudo chmod 755 oscap-ssh && \
sudo mv -v oscap-ssh /usr/local/bin && \
sudo chown root:root /usr/local/bin/oscap-ssh
RUN cd openscap-1.3.6 && \
mkdir -p build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/ .. && \
sudo make install && \
cd ../..
6 changes: 4 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ image:

vscode:
extensions:
- ggbecker.content-navigator
- ms-vscode.live-server
- ggbecker.content-navigator # useful extension for the ComplianceAsCode/content project
- ms-vscode.live-server # HTML preview
- rogalmic.bash-debug # support bashdb debug configurations
- eamodio.gitlens # cool git extension with a bunch of extra features
- twxs.cmake # support to CMakeLists.txt syntax highlighting and more

tasks:
- name: Prepare Env
Expand Down

0 comments on commit e767c23

Please sign in to comment.