Skip to content

Commit

Permalink
Use ubuntu noble provided jq version 1.7.1 in Dockerfile (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taimoor Ahmad authored Jan 23, 2024
1 parent 3acc007 commit 85ef417
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Bugfix-20240123-093822.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Bugfix
body: Dockerfile now uses Ubuntu provided jq package
time: 2024-01-23T09:38:22.042364-05:00
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

### Prerequisite

- [jq](https://stedolan.github.io/jq/download/)
- [jq version 1.7](https://stedolan.github.io/jq/download/)
- [OpsLevel API Token](https://app.opslevel.com/api_tokens)
- Generate token by clicking `Create API Token` and providing a description
- Export the API Token for cli access:
Expand Down
8 changes: 3 additions & 5 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM ubuntu:focal AS release
FROM ubuntu:noble AS release
ENV USER_UID=1001 USER_NAME=opslevel
ENTRYPOINT ["/usr/local/bin/opslevel"]
WORKDIR /app
RUN apt-get update && \
apt-get install -y curl && \
apt-get purge && apt-get clean && apt-get autoclean && \
curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && \
chmod +x /usr/local/bin/jq
apt-get install -y jq && \
apt-get purge && apt-get clean && apt-get autoclean
COPY opslevel /usr/local/bin

0 comments on commit 85ef417

Please sign in to comment.