Skip to content

Commit

Permalink
add more tools
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler committed Aug 14, 2024
1 parent bfd173f commit a613db3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci-image-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
image: prosopo/ci:latest
options: >
--volume ${{ github.workspace }}:/repo
--volume /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Print contexts
env:
Expand Down Expand Up @@ -53,14 +52,14 @@ jobs:
echo "******************************"
- run: git --version
# - run: npm --version
# - run: node --version
# - run: nvm --version
# - run: docker --version
# - run: gh --version
- run: npm --version
- run: node --version
- run: nvm --version
- run: docker --version
- run: gh --version
- run: pip --version
- run: pipx --version
# - run: ansible --version
- run: ansible --version
- run: shellcheck --version
- run: caddy --version
- run: yamllint --version
Expand Down
6 changes: 4 additions & 2 deletions docker/ci.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
SHELL [ "/bin/bash", "-euxo", "pipefail", "-c" ]
# force bash to run in interactive mode so nvm is loaded
RUN sed -i 's/[ -z "$PS1" ] && return/# [ -z "$PS1" ] && return/' ~/.bashrc
SHELL [ "/bin/bash", "-e", "-c" ]

VOLUME /repo
WORKDIR /repo
Expand Down Expand Up @@ -42,6 +44,7 @@ RUN apt-get update
RUN apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
RUN source ~/.bashrc && nvm install 20 && nvm use 20

RUN pipx install ansible

Expand All @@ -53,5 +56,4 @@ RUN rm -rf /var/lib/apt/lists/*

RUN echo "alias pip='pip3'" >> ~/.bashrc


ENTRYPOINT [ "/bin/bash", "-euxo", "pipefail" ]

0 comments on commit a613db3

Please sign in to comment.