go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/examples/k8s/helloworld/Makefile (about)

     1  # Copyright 2019 The LUCI Authors. All rights reserved.
     2  # Use of this source code is governed under the Apache License, Version 2.0
     3  # that can be found in the LICENSE file.
     4  
     5  # All commands here are exclusively for local development. Images produced here
     6  # shouldn't really be pushed anywhere.
     7  
     8  build-binary:
     9  	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./docker .
    10  
    11  build-image: build-binary
    12  	docker build -t helloworld ./docker
    13  
    14  run-image: build-image
    15  	docker run --rm \
    16  		-p 8800:8800 \
    17  		-p 8900:8900 \
    18  		-v ~/.config/chrome_infra/auth:/tokens \
    19  		helloworld:latest \
    20  			-http-addr :8800 \
    21  			-admin-addr :8900 \
    22  			-token-cache-dir /tokens