File tree Expand file tree Collapse file tree 9 files changed +75
-356
lines changed Expand file tree Collapse file tree 9 files changed +75
-356
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:22.04
2
+
3
+ RUN apt-get update -y
4
+ RUN apt-get install -y \
5
+ apt-transport-https \
6
+ build-essential \
7
+ curl \
8
+ git-core \
9
+ gnupg \
10
+ jq \
11
+ lsof \
12
+ mysql-client \
13
+ nmap \
14
+ postgresql-client \
15
+ python3 \
16
+ redis-tools \
17
+ sqlite \
18
+ unzip \
19
+ wget \
20
+ zsh
21
+
22
+ WORKDIR /tmp
23
+
24
+ # AWS
25
+ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
26
+ unzip awscliv2.zip && \
27
+ ./aws/install && \
28
+ rm -rf awscliv2.zip ./aws
29
+
30
+ # GCP
31
+ # Create an environment variable for the correct distribution
32
+ RUN CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
33
+ echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
34
+ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
35
+ apt-get update && apt-get install -y google-cloud-sdk
36
+
37
+ # Azure
38
+ RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | tee /etc/apt/sources.list.d/azure-cli.list && \
39
+ apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893 && \
40
+ apt-get update && apt-get install -y azure-cli
41
+
42
+ # Terraform
43
+ RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
44
+ unzip -a terraform.zip && \
45
+ mv terraform /usr/local/bin/terraform
46
+
47
+ # Kubernetes kubectl
48
+ RUN wget https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
49
+ chmod +x kubectl && \
50
+ mv kubectl /usr/local/bin/kubectl
51
+
52
+ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
53
+ chmod 700 get_helm.sh && \
54
+ ./get_helm.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
Docker image intended to make it easier to do operations work against
6
6
multiple environments and clients.
7
7
8
- - Cloud
9
- - AWS CLI
10
- - Google Cloud SDK
11
- - Microsoft Azure SDK
12
- - DevOps
13
- - Ansible
14
- - Chef
15
- - Docker
16
- - Packer
17
- - Puppet
18
- - Terraform
19
- - Vagrant
20
- - Tools
21
- - CSVKit
22
- - Git
23
- - Mercurial
24
- - MySQL Client
25
- - Nmap
26
- - Ruby
27
- - NodeJS
28
- - Rust
29
- - PostgreSQL Client
30
- - Redis Tools
31
- - SQLite
32
- - SoftLayer
33
- - Sysdig
34
- - lsof
35
- - Envkey
8
+ - Cloud
9
+ - AWS CLI
10
+ - Google Cloud SDK
11
+ - Microsoft Azure SDK
12
+ - DevOps
13
+ - Terraform
14
+ - Tools
15
+ - Git
16
+ - Mercurial
17
+ - MySQL Client
18
+ - Nmap
19
+ - PostgreSQL Client
20
+ - Redis Tools
21
+ - SQLite
22
+ - lsof
23
+ - unzip
24
+ - wget
36
25
37
26
# Usage
38
27
39
- ## AWS AMI
40
-
41
- ```
42
- VPC_ID=vpc-aaaaaaaa \
43
- SUBNET_ID=subnet-aaaaaaaa \
44
- AWS_REGION=us-west-2 \
45
- AWS_ACCESS_KEY_ID=$(aws configure get picnichealth.aws_access_key_id) \
46
- AWS_SECRET_ACCESS_KEY=$(aws configure get picnichealth.aws_secret_access_key) \
47
- packer build -only=amazon-ebs image.json
48
28
```
49
-
50
-
51
- ## Docker
52
-
53
- ```
54
- docker pull opszero/opshell
55
- ```
56
-
57
- opshell requires ` Docker ` to run. When run it mounts the ` $CLIENT_DIR ` as
58
- ` $HOME ` and mounts the ` $WORK_DIR ` under ` /work `
59
-
29
+ git clone https://github.com/opszero/opshell
30
+ cd opshell
31
+ docker build -t opshell .
32
+ docker run -it opshell
60
33
```
61
- opshell $CLIENT_DIR $WORK_DIR
62
- ```
63
-
64
- ## Building All Images
65
-
66
- Build using Packer.
67
-
68
- ```
69
- packer build image.json
70
- ```
71
-
72
- # Supported Images
73
-
74
- - [ AWS Marketplace] ( https://aws.amazon.com/marketplace/pp/B075CLZTFG?qid=1504899558989&sr=0-2&ref_=srh_res_product_title )
75
34
76
35
# Project by opsZero
77
36
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments