From 4bde83a2623917ae0da9faa49b6f823a3831d7a1 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Tue, 7 Jul 2020 13:09:15 -0700 Subject: [PATCH] Fixes #295 --- examples/README.md | 2 ++ examples/docker/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/README.md b/examples/README.md index a2323302..6233571c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -341,6 +341,8 @@ This example creates 3 different docker images: certificate and sets a cron that renews the certificate (the cron runs every minute for testing purposes). +On Linux, you will need the `libpcsclite-dev` package. + To run this test you need to have the docker daemon running. With docker running swith to the `examples/docker directory` and run `make`: diff --git a/examples/docker/Makefile b/examples/docker/Makefile index da726c3c..8ab226e7 100644 --- a/examples/docker/Makefile +++ b/examples/docker/Makefile @@ -1,8 +1,8 @@ all: binaries build up binaries: - GOOS=linux go build -o ca/step-ca github.com/smallstep/certificates/cmd/step-ca - GOOS=linux go build -o renewer/step github.com/smallstep/cli/cmd/step + CGO_ENABLED=0 GOOS=linux go build -o ca/step-ca github.com/smallstep/certificates/cmd/step-ca + CGO_ENABLED=0 GOOS=linux go build -o renewer/step github.com/smallstep/cli/cmd/step build: build-nginx build-ca build-renewer build-nginx: