Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
Dockerfiles
Commits
fce19731
Commit
fce19731
authored
1 year ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Workbench: Add pipx.
parent
ff1c5a6a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
workbench/Dockerfile
+5
-3
5 additions, 3 deletions
workbench/Dockerfile
with
5 additions
and
3 deletions
workbench/Dockerfile
+
5
−
3
View file @
fce19731
# hadolint ignore=DL3007
# hadolint ignore=DL3007
FROM
registry.shore.co.il/toolbx:latest
FROM
registry.shore.co.il/toolbx:latest
SHELL
["/bin/bash", "-o", "pipefail", "-xc"]
SHELL
["/bin/bash", "-o", "pipefail", "-xc"]
ENV
PIPX_HOME /opt/pipx
ENV
PIPX_BIN_DIR /opt/pipx/bin
ENV
PATH /opt/pipx/bin:/usr/local/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# hadolint ignore=DL3008,DL3013,DL3016,DL3027,DL4001
# hadolint ignore=DL3008,DL3013,DL3016,DL3027,DL4001
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
curl
--location
--silent
--fail
--show-error
https://github.com/kubernetes/kompose/releases/download/v1.26.1/kompose_1.26.1_amd64.deb
--output
/tmp/kompose.deb
&&
\
curl
--location
--silent
--fail
--show-error
https://github.com/kubernetes/kompose/releases/download/v1.26.1/kompose_1.26.1_amd64.deb
--output
/tmp/kompose.deb
&&
\
...
@@ -204,6 +207,7 @@ RUN apt-get update && \
...
@@ -204,6 +207,7 @@ RUN apt-get update && \
pgcli
\
pgcli
\
pip-tools
\
pip-tools
\
pipenv
\
pipenv
\
pipx
\
poetry
\
poetry
\
pre-commit
\
pre-commit
\
protobuf
\
protobuf
\
...
@@ -234,7 +238,6 @@ RUN apt-get update && \
...
@@ -234,7 +238,6 @@ RUN apt-get update && \
@playwright/test
\
@playwright/test
\
&&
\
&&
\
export
GOPATH
=
/usr/local/lib/go
&&
\
export
GOPATH
=
/usr/local/lib/go
&&
\
export
PATH
=
"
$GOPATH
/bin:
$PATH
"
&&
\
mkdir
"
$GOPATH
"
&&
\
mkdir
"
$GOPATH
"
&&
\
export
GO111MODULE
=
on
&&
\
export
GO111MODULE
=
on
&&
\
go
install
github.com/giantswarm/semver-bump@latest
&&
\
go
install
github.com/giantswarm/semver-bump@latest
&&
\
...
@@ -282,13 +285,12 @@ RUN apt-get update && \
...
@@ -282,13 +285,12 @@ RUN apt-get update && \
wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
-qO
- |
\
wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
-qO
- |
\
awk
'/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} n > 0 {print > ("/usr/local/share/ca-certificates/rds-" (1+n) ".crt")}'
&&
\
awk
'/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} n > 0 {print > ("/usr/local/share/ca-certificates/rds-" (1+n) ".crt")}'
&&
\
update-ca-certificates
&&
\
update-ca-certificates
&&
\
echo
"export PATH=
$GOPATH
/bin:
\$
PATH"
>
/etc/profile.d/workbench.sh
&&
\
echo
"export PATH=
$
PIPX_BIN_DIR
:
$
GOPATH
/bin:
\$
PATH"
>
/etc/profile.d/workbench.sh
&&
\
# pragma: allowlist nextline secret
# pragma: allowlist nextline secret
rm /etc/ssh/ssh_host_* && \
rm /etc/ssh/ssh_host_* && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
COPY
--chown=root:root bash_completion.d/* /etc/bash_completion.d/
COPY
--chown=root:root bash_completion.d/* /etc/bash_completion.d/
COPY
--chown=root:root bin/* /usr/local/bin/
COPY
--chown=root:root bin/* /usr/local/bin/
ENV
PATH /usr/local/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV
ASDF_DIR /opt/asdf
ENV
ASDF_DIR /opt/asdf
VOLUME
/run/sshd
VOLUME
/run/sshd
CMD
["/bin/bash"]
CMD
["/bin/bash"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment