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
8e7f8d34
Commit
8e7f8d34
authored
1 year ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Workbench: Small Dockerfile cleanup.
parent
2db93ac5
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
+12
-14
12 additions, 14 deletions
workbench/Dockerfile
with
12 additions
and
14 deletions
workbench/Dockerfile
+
12
−
14
View file @
8e7f8d34
...
@@ -255,20 +255,18 @@ RUN export GOPATH=/usr/local/lib/go && \
...
@@ -255,20 +255,18 @@ RUN export GOPATH=/usr/local/lib/go && \
go
install
sigs.k8s.io/kustomize/kustomize/v5@latest
&&
\
go
install
sigs.k8s.io/kustomize/kustomize/v5@latest
&&
\
go
install
github.com/1player/host-spawn@latest
&&
\
go
install
github.com/1player/host-spawn@latest
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
RUN
wget https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/v3.12.6/deps/rabbitmq_management/bin/rabbitmqadmin
-qO
/usr/local/bin/rabbitmqadmin
&&
\
# hadolint ignore=SC2263
chmod
+x /usr/local/bin/rabbitmqadmin
&&
\
RUN
alias
curl
=
'curl --silent --location --fail --show-error --compressed --proto "=https"'
&&
\
wget
https://github
.com/docker/compose/releases/download/v2.2
2.
0
/d
ocker-compose-linux-x86_64
-qO
/usr/local/bin/
docker-compose
&&
\
install
-m
0755 <
(
curl
https://
raw.
github
usercontent.com/rabbitmq/rabbitmq-server/v3.1
2.
6
/d
eps/rabbitmq_management/bin/rabbitmqadmin
)
/usr/local/bin/
rabbitmqadmin
&&
\
chmod
+x
/usr/local/bin/docker-compose
&&
\
install
-m
0755 <
(
curl https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-linux-x86_64
)
/usr/local/bin/docker-compose
&&
\
mkdir
/usr/local/share/bfg
&&
\
mkdir
/usr/local/share/bfg
&&
\
wget
'https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar'
-qO
/usr/local/share/bfg/bfg.jar
&&
\
install
<
(
curl
'https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar'
)
/usr/local/share/bfg/bfg.jar
&&
\
curl
--silent
--location
--fail
--show-error
"https://github.com/genuinetools/reg/releases/download/v0.16.1/reg-
$(
go
env
GOOS
)
-
$(
go
env
GOARCH
)
"
--output
/tmp/reg
&&
\
install
-m
0755 <
(
curl
"https://github.com/genuinetools/reg/releases/download/v0.16.1/reg-
$(
go
env
GOOS
)
-
$(
go
env
GOARCH
)
"
)
/usr/local/bin/reg
&&
\
install
-o
root
-g
root
-m
0755 /tmp/reg /usr/local/bin/reg
&&
\
install
-m
0755 <
(
curl
"https://github.com/rancher/rke/releases/download/v1.4.10/rke_
$(
go
env
GOOS
)
-
$(
go
env
GOARCH
)
"
)
/usr/local/bin/rke
&&
\
curl
--silent
--location
--fail
--show-error
"https://github.com/rancher/rke/releases/download/v1.4.10/rke_
$(
go
env
GOOS
)
-
$(
go
env
GOARCH
)
"
--output
/tmp/rke
&&
\
curl https://github.com/SelfAdjointOperator/better-adb-sync/archive/refs/heads/master.tar.gz |
tar
-zxC
/opt/
&&
\
install
-o
root
-g
root
-m
0755 /tmp/rke /usr/local/bin/rke
&&
\
curl
--silent
--location
--fail
--show-error
https://github.com/SelfAdjointOperator/better-adb-sync/archive/refs/heads/master.tar.gz |
tar
-zxC
/opt/
&&
\
ln
--symbolic
/opt/better-adb-sync-master/src/adbsync.py /usr/local/bin/adbsync
&&
\
ln
--symbolic
/opt/better-adb-sync-master/src/adbsync.py /usr/local/bin/adbsync
&&
\
git clone
https://github.com/asdf-vm/asdf
.git /opt/asdf
&&
\
curl
https://github.com/asdf-vm/asdf
/archive/refs/heads/master.tar.gz |
tar
-zxC
/tmp
&&
\
ln
--symbolic
--target
/etc/profile.d/ /opt/asdf/asdf.sh
&&
\
ln
--symbolic
--target
/etc/profile.d/ /opt/asdf
-master
/asdf.sh
&&
\
echo
"export PATH=
$PIPX_BIN_DIR
:/usr/local/lib/go/bin:
\$
PATH"
>
/etc/profile.d/workbench.sh
&&
\
echo
"export PATH=
$PIPX_BIN_DIR
:/usr/local/lib/go/bin:
\$
PATH"
>
/etc/profile.d/workbench.sh
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
RUN
_PIPENV_COMPLETE
=
bash_source pipenv
>
/etc/bash_completion.d/pipenv
&&
\
RUN
_PIPENV_COMPLETE
=
bash_source pipenv
>
/etc/bash_completion.d/pipenv
&&
\
...
@@ -289,7 +287,7 @@ RUN _PIPENV_COMPLETE=bash_source pipenv > /etc/bash_completion.d/pipenv && \
...
@@ -289,7 +287,7 @@ RUN _PIPENV_COMPLETE=bash_source pipenv > /etc/bash_completion.d/pipenv && \
wget https://raw.githubusercontent.com/dsifford/yarn-completion/v0.17.0/yarn-completion.bash
-qO
/etc/bash_completion.d/yarn
&&
\
wget https://raw.githubusercontent.com/dsifford/yarn-completion/v0.17.0/yarn-completion.bash
-qO
/etc/bash_completion.d/yarn
&&
\
wget https://github.com/containers/podman/raw/main/completions/bash/podman
-qO
/etc/bash_completion.d/podman
&&
\
wget https://github.com/containers/podman/raw/main/completions/bash/podman
-qO
/etc/bash_completion.d/podman
&&
\
#wget https://raw.githubusercontent.com/ziglang/shell-completions/master/_zig -qO /etc/bash_completion.d/zig &&
\
#wget https://raw.githubusercontent.com/ziglang/shell-completions/master/_zig -qO /etc/bash_completion.d/zig &&
\
ln
--symbolic
/opt/asdf/completions/asdf.bash /etc/bash_completion.d/asdf
&&
\
ln
--symbolic
/opt/asdf
-master
/completions/asdf.bash /etc/bash_completion.d/asdf
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
rm
-rf
/tmp/
*
/var/tmp/
*
~/.cache/
*
RUN
mkdir
-p
/usr/local/share/ca-certificates
&&
\
RUN
mkdir
-p
/usr/local/share/ca-certificates
&&
\
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
- |
\
...
@@ -299,6 +297,6 @@ RUN mkdir -p /usr/local/share/ca-certificates && \
...
@@ -299,6 +297,6 @@ RUN mkdir -p /usr/local/share/ca-certificates && \
rm -rf /tmp/* /var/tmp/* ~/.cache/*
rm -rf /tmp/* /var/tmp/* ~/.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
ASDF_DIR /opt/asdf
ENV
ASDF_DIR /opt/asdf
-master
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