Created
July 21, 2019 03:07
-
-
Save HokieGeek/0db5d5159cc346360ffe36e499f8bf84 to your computer and use it in GitHub Desktop.
ahab tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Build the code | |
FROM golang:1.12 | |
ENV GO111MODULE=on GOOS=linux GOARCH=amd64 | |
RUN apt-get update | |
WORKDIR /go/src/github.com/sonatype/ahab | |
COPY . . | |
RUN go install -v -ldflags="-w -s" ./... | |
### Package it up | |
FROM ubuntu:latest | |
RUN apt-get update && apt-get --assume-yes install python-pip | |
COPY --from=0 /go/bin/ahab /usr/local/bin | |
RUN apt list --installed | ahab chase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Build the code | |
FROM golang:1.12 | |
ENV GO111MODULE=on GOOS=linux GOARCH=amd64 | |
RUN apt-get update | |
WORKDIR /go/src/github.com/sonatype/ahab | |
COPY . . | |
RUN go install -v -ldflags="-w -s" ./... | |
### Package it up | |
FROM centos:latest | |
RUN yum -y update && yum -y install epel-release && yum -y install python-pip openssl | |
COPY --from=0 /go/bin/ahab /usr/local/bin | |
RUN yum --quiet list installed | ahab chase --pkg yum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment