Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorMutch committed Feb 21, 2020
0 parents commit 577df60
Show file tree
Hide file tree
Showing 88 changed files with 5,292 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
audit.json
creds.json
27 changes: 27 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
image: docker:latest

services:
- docker:dind

variables:
DOCKER_DRIVER: overlay2
GOPATH: /build
REPO_NAME: github.com/Unity-Technologies/nemesis
RUN_SRCCLR: 0

before_script:
# Install CA certs, openssl to https downloads, python for gcloud sdk
- apk add --update make ca-certificates openssl python
- update-ca-certificates
# Authorize the docker client with GCR
- echo $GCLOUD_SERVICE_KEY | docker login -u _json_key --password-stdin https://gcr.io
# Go to build directory

stages:
- build

build:
stage: build
script:
- |
make build push
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [0.1.0] - 2019-07-25
### Added
- First release!
- Support for scanning GCP project(s) and measuring against the [GCP CIS Benchmark](https://www.cisecurity.org/benchmark/google_cloud_computing_platform/)

### Changed
- N/A

### Removed
- N/A
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM alpine:3.10.3 AS certs
RUN apk --no-cache add ca-certificates

FROM golang:1.13.5 as builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /nemesis .

FROM scratch
COPY --from=builder /nemesis ./
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["./nemesis"]
Loading

0 comments on commit 577df60

Please sign in to comment.