Skip to content

Commit 698a34e

Browse files
committed
Move to Docker file
1 parent 2b3b98a commit 698a34e

File tree

9 files changed

+75
-356
lines changed

9 files changed

+75
-356
lines changed

.github/workflows/packer.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

Dockerfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -5,73 +5,32 @@
55
Docker image intended to make it easier to do operations work against
66
multiple environments and clients.
77

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
3625

3726
# Usage
3827

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
4828
```
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
6033
```
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)
7534

7635
# Project by opsZero
7736

ami/base.sh

Lines changed: 0 additions & 92 deletions
This file was deleted.

ami/docker

Lines changed: 0 additions & 16 deletions
This file was deleted.

ami/docker.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)