Coder Social home page Coder Social logo

azch-captureorder's Introduction

CaptureOrder

Build Status

A containerised Go swagger API to capture orders, write them to MongoDb and an AMQP message queue.

Usage

Swagger

Access the Swagger UI at http://[host]/swagger

Submitting an order

POST /v1/Order HTTP/1.1
Host: [host]:[port]
Content-Type: application/json

{
  "EmailAddress": "[email protected]",
  "PreferredLanguage": "en"
}

Environment Variables

The following environment variables need to be passed to the container:

For MongoDB

ENV MONGOHOST=<mongo service name>.<namespace>
ENV MONGOUSER=admin
ENV MONGOPASSWORD=<password for MongoDB>

For CosmosDB

ENV MONGOHOST=<cosmosdb account name>.documents.azure.com
ENV MONGOUSER=<cosmosdb username>
ENV MONGOPASSWORD=<cosmosdb primary password>

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azch-captureorder's People

Contributors

henrynn avatar knee-berts avatar microsoftopensource avatar msftgits avatar sabbour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azch-captureorder's Issues

Build failing to get go dependencies

This repository is being used for a joint Microsoft/Aqua Security customer workshop. It was successfully used as recently as 6/11/20. However, when preparing for our next workshop next week on 9/24/20, I've discovered that the repository is failing to build with this command:

az acr build -t "captureorder:{{.Run.ID}}" -r $registry .

The command produces the following output (and appears to be a problem with getting go dependencies when building the go application in a Docker image):

odl_user@Azure:~/azch-captureorder$ az acr build -t "captureorder:{{.Run.ID}}" -r $registry .
Packing source code into tar to upload...
Excluding '.gitignore' based on default ignore rules
Excluding '.git' based on default ignore rules
Uploading archived source code from '/tmp/build_archive_6f6d79abe32441b481b1b16c2fe2c8d2.tar.gz'...
Sending context (475.732 KiB) to registry: acraks221249...
Queued a build with ID: cx8
Waiting for an agent...
2020/09/17 18:31:24 Downloading source code...
2020/09/17 18:31:25 Finished downloading source code
2020/09/17 18:31:26 Using acb_vol_04262786-ff0f-4179-b954-7ebec84ac18b as the home volume
2020/09/17 18:31:26 Setting up Docker configuration...
2020/09/17 18:31:27 Successfully set up Docker configuration
2020/09/17 18:31:27 Logging in to registry: acraks221249.azurecr.io
2020/09/17 18:31:31 Successfully logged into acraks221249.azurecr.io
2020/09/17 18:31:31 Executing step ID: build. Timeout(sec): 28800, Working directory: '', Network: ''
2020/09/17 18:31:31 Scanning for dependencies...
2020/09/17 18:31:31 Successfully scanned dependencies
2020/09/17 18:31:31 Launching container with name: build
Sending build context to Docker daemon 1.895MB
Step 1/21 : FROM golang:1.9.4 as builder
1.9.4: Pulling from library/golang
c73ab1c6897b: Pulling fs layer
1ab373b3deae: Pulling fs layer
b542772b4177: Pulling fs layer
57c8de432dbe: Pulling fs layer
c81227e1ec90: Pulling fs layer
c503a785f6fd: Pulling fs layer
0f90e5cd37cc: Pulling fs layer
8e848f75f6b2: Pulling fs layer
57c8de432dbe: Waiting
c81227e1ec90: Waiting
c503a785f6fd: Waiting
0f90e5cd37cc: Waiting
8e848f75f6b2: Waiting
b542772b4177: Verifying Checksum
b542772b4177: Download complete
1ab373b3deae: Verifying Checksum
1ab373b3deae: Download complete
c73ab1c6897b: Verifying Checksum
c73ab1c6897b: Download complete
57c8de432dbe: Verifying Checksum
57c8de432dbe: Download complete
c81227e1ec90: Verifying Checksum
c81227e1ec90: Download complete
0f90e5cd37cc: Verifying Checksum
0f90e5cd37cc: Download complete
8e848f75f6b2: Verifying Checksum
8e848f75f6b2: Download complete
c503a785f6fd: Verifying Checksum
c503a785f6fd: Download complete
c73ab1c6897b: Pull complete
1ab373b3deae: Pull complete
b542772b4177: Pull complete
57c8de432dbe: Pull complete
c81227e1ec90: Pull complete
c503a785f6fd: Pull complete
0f90e5cd37cc: Pull complete
8e848f75f6b2: Pull complete
Digest: sha256:332a39d7995bc6770e70cc9c48bae1e5724d91f88c62856ffe3b32f64419622d
Status: Downloaded newer image for golang:1.9.4
---> a6c306bd0b2f
Step 2/21 : WORKDIR /go/src/captureorderfd
---> Running in c8d69c688476
Removing intermediate container c8d69c688476
---> 7839f2332388
Step 3/21 : RUN go get -u -v github.com/astaxie/beego
---> Running in eb769857803c
github.com/astaxie/beego (download)
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/shiena/ansicolor (download)
github.com/hashicorp/golang-lru (download)
github.com/prometheus/client_golang (download)
github.com/beorn7/perks (download)
github.com/cespare/xxhash (download)
package github.com/cespare/xxhash/v2: cannot find package "github.com/cespare/xxhash/v2" in any of:
/usr/local/go/src/github.com/cespare/xxhash/v2 (from $GOROOT)
/go/src/github.com/cespare/xxhash/v2 (from $GOPATH)
github.com/golang/protobuf (download)
Fetching https://google.golang.org/protobuf/encoding/prototext?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/encoding/prototext?go-get=1 (status code 200)
get "google.golang.org/protobuf/encoding/prototext": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/encoding/prototext?go-get=1
get "google.golang.org/protobuf/encoding/prototext": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf?go-get=1
Parsing meta tags from https://google.golang.org/protobuf?go-get=1 (status code 200)
google.golang.org/protobuf (download)
Fetching https://google.golang.org/protobuf/encoding/protowire?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/encoding/protowire?go-get=1 (status code 200)
get "google.golang.org/protobuf/encoding/protowire": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/encoding/protowire?go-get=1
get "google.golang.org/protobuf/encoding/protowire": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/errors?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/errors?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/errors": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/errors?go-get=1
get "google.golang.org/protobuf/internal/errors": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/detrand?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/detrand?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/detrand": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/detrand?go-get=1
get "google.golang.org/protobuf/internal/detrand": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/encoding/messageset?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/encoding/messageset?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/encoding/messageset": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/encoding/messageset?go-get=1
get "google.golang.org/protobuf/internal/encoding/messageset": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/reflect/protoreflect?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/reflect/protoreflect?go-get=1 (status code 200)
get "google.golang.org/protobuf/reflect/protoreflect": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/reflect/protoreflect?go-get=1
get "google.golang.org/protobuf/reflect/protoreflect": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/pragma?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/pragma?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/pragma": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/pragma?go-get=1
get "google.golang.org/protobuf/internal/pragma": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/encoding/text?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/encoding/text?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/encoding/text": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/encoding/text?go-get=1
get "google.golang.org/protobuf/internal/encoding/text": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/flags?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/flags?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/flags": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/flags?go-get=1
get "google.golang.org/protobuf/internal/flags": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/strs?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/strs?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/strs": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/strs?go-get=1
get "google.golang.org/protobuf/internal/strs": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/genid?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/genid?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/genid": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/genid?go-get=1
get "google.golang.org/protobuf/internal/genid": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/order?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/order?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/order": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/order?go-get=1
get "google.golang.org/protobuf/internal/order": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/set?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/set?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/set": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/set?go-get=1
get "google.golang.org/protobuf/internal/set": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/proto?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/proto?go-get=1 (status code 200)
get "google.golang.org/protobuf/proto": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/proto?go-get=1
get "google.golang.org/protobuf/proto": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/reflect/protoregistry?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/reflect/protoregistry?go-get=1 (status code 200)
get "google.golang.org/protobuf/reflect/protoregistry": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/reflect/protoregistry?go-get=1
get "google.golang.org/protobuf/reflect/protoregistry": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/runtime/protoiface?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/runtime/protoiface?go-get=1 (status code 200)
get "google.golang.org/protobuf/runtime/protoiface": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/runtime/protoiface?go-get=1
get "google.golang.org/protobuf/runtime/protoiface": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/runtime/protoimpl?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/runtime/protoimpl?go-get=1 (status code 200)
get "google.golang.org/protobuf/runtime/protoimpl": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/runtime/protoimpl?go-get=1
get "google.golang.org/protobuf/runtime/protoimpl": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/filedesc?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/filedesc?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/filedesc": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/filedesc?go-get=1
get "google.golang.org/protobuf/internal/filedesc": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/descfmt?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/descfmt?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/descfmt": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/descfmt?go-get=1
get "google.golang.org/protobuf/internal/descfmt": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/descopts?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/descopts?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/descopts": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/descopts?go-get=1
get "google.golang.org/protobuf/internal/descopts": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/encoding/defval?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/encoding/defval?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/encoding/defval": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/encoding/defval?go-get=1
get "google.golang.org/protobuf/internal/encoding/defval": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/filetype?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/filetype?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/filetype": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/filetype?go-get=1
get "google.golang.org/protobuf/internal/filetype": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/impl?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/impl?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/impl": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/impl?go-get=1
get "google.golang.org/protobuf/internal/impl": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/encoding/tag?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/encoding/tag?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/encoding/tag": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/encoding/tag?go-get=1
get "google.golang.org/protobuf/internal/encoding/tag": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/internal/version?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/internal/version?go-get=1 (status code 200)
get "google.golang.org/protobuf/internal/version": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/internal/version?go-get=1
get "google.golang.org/protobuf/internal/version": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/types/known/anypb?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/types/known/anypb?go-get=1 (status code 200)
get "google.golang.org/protobuf/types/known/anypb": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/types/known/anypb?go-get=1
get "google.golang.org/protobuf/types/known/anypb": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/types/known/durationpb?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/types/known/durationpb?go-get=1 (status code 200)
get "google.golang.org/protobuf/types/known/durationpb": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/types/known/durationpb?go-get=1
get "google.golang.org/protobuf/types/known/durationpb": verifying non-authoritative meta tag
Fetching https://google.golang.org/protobuf/types/known/timestamppb?go-get=1
Parsing meta tags from https://google.golang.org/protobuf/types/known/timestamppb?go-get=1 (status code 200)
get "google.golang.org/protobuf/types/known/timestamppb": found meta tag get.metaImport{Prefix:"google.golang.org/protobuf", VCS:"git", RepoRoot:"https://go.googlesource.com/protobuf"} at https://google.golang.org/protobuf/types/known/timestamppb?go-get=1
get "google.golang.org/protobuf/types/known/timestamppb": verifying non-authoritative meta tag
github.com/prometheus/client_model (download)
github.com/prometheus/common (download)
github.com/matttproud/golang_protobuf_extensions (download)
github.com/prometheus/procfs (download)
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
Fetching https://golang.org/x/sys/internal/unsafeheader?go-get=1
Parsing meta tags from https://golang.org/x/sys/internal/unsafeheader?go-get=1 (status code 200)
get "golang.org/x/sys/internal/unsafeheader": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/internal/unsafeheader?go-get=1
get "golang.org/x/sys/internal/unsafeheader": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto/acme/autocert?go-get=1
Parsing meta tags from https://golang.org/x/crypto/acme/autocert?go-get=1 (status code 200)
get "golang.org/x/crypto/acme/autocert": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/acme/autocert?go-get=1
get "golang.org/x/crypto/acme/autocert": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/crypto/acme?go-get=1
Parsing meta tags from https://golang.org/x/crypto/acme?go-get=1 (status code 200)
get "golang.org/x/crypto/acme": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/acme?go-get=1
get "golang.org/x/crypto/acme": verifying non-authoritative meta tag
Fetching https://golang.org/x/net/idna?go-get=1
Parsing meta tags from https://golang.org/x/net/idna?go-get=1 (status code 200)
get "golang.org/x/net/idna": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/idna?go-get=1
get "golang.org/x/net/idna": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/text/secure/bidirule?go-get=1
Parsing meta tags from https://golang.org/x/text/secure/bidirule?go-get=1 (status code 200)
get "golang.org/x/text/secure/bidirule": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/secure/bidirule?go-get=1
get "golang.org/x/text/secure/bidirule": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
golang.org/x/text (download)
Fetching https://golang.org/x/text/transform?go-get=1
Parsing meta tags from https://golang.org/x/text/transform?go-get=1 (status code 200)
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/bidi?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/bidi?go-get=1 (status code 200)
get "golang.org/x/text/unicode/bidi": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/bidi?go-get=1
get "golang.org/x/text/unicode/bidi": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/norm?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/norm?go-get=1 (status code 200)
get "golang.org/x/text/unicode/norm": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/norm?go-get=1
get "golang.org/x/text/unicode/norm": verifying non-authoritative meta tag
The command '/bin/sh -c go get -u -v github.com/astaxie/beego' returned a non-zero code: 1
2020/09/17 18:32:35 Container failed during run: build. No retries remaining.
failed to run step ID: build: exit status 1

Run ID: cx8 failed after 1m16s. Error: failed during run, err: exit status 1
Run failed

Dockerfile needs update as builds now fail

Trying to build an image straight from sourcecode now breaks since the image build task can not install the golang dependencies. As of March this year, all dependencies installed successfully.

Please help with the update.

Update docker file to be PSP friendly

Please update docker image to run as a non-root user

Events:
  Type     Reason     Age                From                                        Message
  ----     ------     ----               ----                                        -------
  Normal   Scheduled  15s                default-scheduler                           Successfully assigned patpicos/captureorder-d47ff8794-nsrhg to aks-agentpool-22059577-vmss000001
  Normal   Pulling    13s (x2 over 14s)  kubelet, aks-agentpool-22059577-vmss000001  Pulling image "azch/captureorder"
  Normal   Pulled     12s (x2 over 14s)  kubelet, aks-agentpool-22059577-vmss000001  Successfully pulled image "azch/captureorder"
  Normal   Created    12s (x2 over 13s)  kubelet, aks-agentpool-22059577-vmss000001  Created container captureorder
  Warning  Failed     12s (x2 over 13s)  kubelet, aks-agentpool-22059577-vmss000001  Error: failed to start container "captureorder": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/root\") set in config.json failed: permission denied": unknown
  Warning  BackOff    8s                 kubelet, aks-agentpool-22059577-vmss000001  Back-off restarting failed container

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.