-
Notifications
You must be signed in to change notification settings - Fork 472
/
Copy pathDockerfile
82 lines (71 loc) · 3.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Author: Hari Sekhon
# Date: 2016-01-16 09:58:07 +0000 (Sat, 16 Jan 2016)
#
# vim:ts=4:sts=4:sw=4:et
#
# https://github.com/HariSekhon/Dockerfiles
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
#FROM fedora:latest
# Fedora 35 gets 'curl: (6) getaddrinfo() thread failed to start' for any address due to a bug
# nosemgrep: dockerfile.audit.dockerfile-source-not-pinned.dockerfile-source-not-pinned
FROM fedora:34
LABEL org.opencontainers.image.description="Bash Tools" \
org.opencontainers.image.authors="Hari Sekhon (https://www.linkedin.com/in/HariSekhon)" \
org.opencontainers.image.url="https://ghcr.io/HariSekhon/bash-tools" \
org.opencontainers.image.documentation="https://hub.docker.com/r/harisekhon/bash-tools" \
org.opencontainers.image.source="https://github.com/HariSekhon/Dockerfiles"
# used by build.sh to figure out which repo to bootstrap
ENV PATH $PATH:/github/bash-tools
# access the scripts via the $PATH - safer than trying to do .profile injection since it may not be triggered
ENV PATH $PATH:/github/bash-tools/ai
ENV PATH $PATH:/github/bash-tools/appveyor
ENV PATH $PATH:/github/bash-tools/aws
ENV PATH $PATH:/github/bash-tools/azure_devops
ENV PATH $PATH:/github/bash-tools/bigdata
ENV PATH $PATH:/github/bash-tools/bin
ENV PATH $PATH:/github/bash-tools/bitbucket
ENV PATH $PATH:/github/bash-tools/buildkite
ENV PATH $PATH:/github/bash-tools/checks
ENV PATH $PATH:/github/bash-tools/cicd
ENV PATH $PATH:/github/bash-tools/circleci
ENV PATH $PATH:/github/bash-tools/cloudflare
ENV PATH $PATH:/github/bash-tools/data
ENV PATH $PATH:/github/bash-tools/docker
ENV PATH $PATH:/github/bash-tools/drone
ENV PATH $PATH:/github/bash-tools/gcp
ENV PATH $PATH:/github/bash-tools/git
ENV PATH $PATH:/github/bash-tools/github
ENV PATH $PATH:/github/bash-tools/gitlab
ENV PATH $PATH:/github/bash-tools/install
ENV PATH $PATH:/github/bash-tools/ipaas
ENV PATH $PATH:/github/bash-tools/java
ENV PATH $PATH:/github/bash-tools/jenkins
ENV PATH $PATH:/github/bash-tools/kafka
ENV PATH $PATH:/github/bash-tools/kubernetes
ENV PATH $PATH:/github/bash-tools/media
ENV PATH $PATH:/github/bash-tools/monitoring
ENV PATH $PATH:/github/bash-tools/mysql
ENV PATH $PATH:/github/bash-tools/packages
ENV PATH $PATH:/github/bash-tools/perl
ENV PATH $PATH:/github/bash-tools/pingdom
ENV PATH $PATH:/github/bash-tools/postgres
ENV PATH $PATH:/github/bash-tools/python
ENV PATH $PATH:/github/bash-tools/scripts
ENV PATH $PATH:/github/bash-tools/search
ENV PATH $PATH:/github/bash-tools/setup
ENV PATH $PATH:/github/bash-tools/spotify
ENV PATH $PATH:/github/bash-tools/terraform
ADD https://raw.githubusercontent.com/HariSekhon/DevOps-Bash-tools/master/setup/docker_bootstrap.sh /build.sh
RUN chmod +x /build.sh && NO_TESTS=1 /build.sh
# Cache Bust upon new commits
ADD https://api.github.com/repos/HariSekhon/DevOps-Bash-tools/git/refs/heads/master /.git-hashref
ADD https://raw.githubusercontent.com/HariSekhon/Dockerfiles/master/src/list_shell.sh /list.sh
# 2nd run is almost a noop without cache, and only an incremental update upon cache bust
RUN chmod +x /list.sh && /build.sh
WORKDIR /github/bash-tools
CMD ["/list.sh", "/github/bash-tools"]