mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-16 23:29:38 +00:00
Alpine 317 (#3888)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS mirror
|
||||
FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev linux-headers
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off
|
||||
|
@@ -185,13 +185,15 @@ func main() {
|
||||
|
||||
// If the userdata is a json file, create a directory/file hierarchy.
|
||||
// Example:
|
||||
// {
|
||||
// "foobar" : {
|
||||
// "foo" : {
|
||||
// "perm": "0644",
|
||||
// "content": "hello"
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// "foobar" : {
|
||||
// "foo" : {
|
||||
// "perm": "0644",
|
||||
// "content": "hello"
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// Will create foobar/foo with mode 0644 and content "hello"
|
||||
func processUserData(basePath string, data []byte) error {
|
||||
// Always write the raw data to a file
|
||||
|
@@ -90,12 +90,15 @@ func gcpGet(url string) ([]byte, error) {
|
||||
|
||||
// SSH keys:
|
||||
// TODO also retrieve the instance keys and respect block
|
||||
// project keys see:
|
||||
// https://cloud.google.com/compute/docs/instances/ssh-keys
|
||||
//
|
||||
// project keys see:
|
||||
// https://cloud.google.com/compute/docs/instances/ssh-keys
|
||||
//
|
||||
// The keys have usernames attached, but as a simplification
|
||||
// we are going to add them all to one root file
|
||||
// TODO split them into individual user files and make the ssh
|
||||
// container construct those users
|
||||
//
|
||||
// container construct those users
|
||||
func (p *ProviderGCP) handleSSH() error {
|
||||
sshKeys, err := gcpGet(project + "attributes/ssh-keys")
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user