Carl Tashian 6 лет назад
Родитель
Сommit
4bde83a262
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      examples/README.md
  2. 2 2
      examples/docker/Makefile

+ 2 - 0
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`:
 

+ 2 - 2
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: