Coder Social home page Coder Social logo

doodle's Introduction

Building Docker Doodles

Building can be done with the original docker build, or with the new BuildKit application. The new experimental 'buildx' command, which is in nightly builds as well as in the Docker Engine 19.03 release, provides a new, albeit familiar front end to BuildKit similar to the original docker build command. BuildKit has some great new added features such as increased performance, and the ability to easily build cross platform.

To build for your own platform with the original docker build command, use:

cd <doodle> && docker build -t <username>/doodle:<doodle> ./

To build cross platform, use the Dockerfile.cross file, either with BuildKit directly, or with buildx. With buildx, you'll first need to create a cross platform builder instance with:

docker buildx create --use

You only need to create one builder instance, and should not need to create new ones with subsequent builds. To create and push the multi-arch image to Docker Hub, use the command:

cd <doodle> && docker buildx build -f Dockerfile.cross --platform linux/amd64,linux/arm64,linux/arm/v8,linux/s390x,linux/ppc64le,windows/amd64 -t <username>/doodle:<doodle> --push .

This will build the Doodle for these architectures:

  • linux/amd64 (64 bit Linux native)
  • linux/arm64 (suitable for Amazon EC2 A1 instances)
  • linux/arm/v8 (suitable for Raspberry Pi)
  • linux/s390x (for mainframe lovers)
  • linux/ppc64le (for IBM POWER8 Little Endian)
  • windows/amd64 (64 bit Windows native)

doodle's People

Contributors

cornelisdemooij avatar followgithuborg avatar pdevine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doodle's Issues

No matching manifest for windows

When I build the code I cloned from this repo, I get this error: 1.11-alpine: Pulling from library/golang
no matching manifest for windows/amd64 10.0.17134 in the manifest list entries.

I don't seem to find any solution. Kindly help me. I am running docker for windows

404 package?

Hi, i'm just playing around with examples and just having an issue here.
Is correct this 404? github.com/pdevine/go-asciisprite/termbox


cheers.go:8:2: cannot find package "github.com/pdevine/go-asciisprite" in any of:
	/usr/local/opt/go/libexec/src/github.com/pdevine/go-asciisprite (from $GOROOT)
	/Users/marcelocarneiro/www/go/src/github.com/pdevine/go-asciisprite (from $GOPATH)

build error and maybe no aceess to go website in Chian

Hi,
I run the command and got the error information:
docker build -t bitcometz/cheers2019 .

Error:
Sending build context to Docker daemon 12.8kB
Step 1/9 : FROM golang:1.11-alpine AS builder
---> 419986b2b50a
Step 2/9 : RUN apk add --no-cache git
---> Using cache
---> 2feb24c28c14
Step 3/9 : RUN go get github.com/pdevine/go-asciisprite
---> Running in 8317fc58cb96
package golang.org/x/text/encoding: unrecognized import path "golang.org/x/text/encoding" (https fetch: Get https://golang.org/x/text/encoding?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
package golang.org/x/text/transform: unrecognized import path "golang.org/x/text/transform" (https fetch: Get https://golang.org/x/text/transform?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
The command '/bin/sh -c go get github.com/pdevine/go-asciisprite' returned a non-zero code: 1

Thanks

Pull access denied even when logged into docker hub

Ran docker run it --rm surprise as suggested. Received following error message:

Unable to find image 'surprise:latest' locally
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: pull access denied for surprise, repository does not exist or may require 'docker login'.

Logged into docker hub using docker login. Got same response again.

Error when run build command.

I ran command 'docker build -t evst ./'
Building started successfuly but when it's almost done I faced with that error messages:

package golang.org/x/text/encoding: unrecognized import path "golang.org/x/text/encoding" (https fetch: Get https://golang.org/x/text/encoding?go-get=1: x509: certificate signed by unknown authority)
package golang.org/x/text/transform: unrecognized import path "golang.org/x/text/transform" (https fetch: Get https://golang.org/x/text/transform?go-get=1: x509: certificate signed by unknown authority)

Could you provide some tips, what should I do?

OS: Win 10.

OCI runtime create failed: container_linux.go:345: starting container process caused...

My OS:windows10
My Docker:v2.1.0.1(37199) with linux containers

The error message:
PS C:...\docker\doodle\cheers2019> docker build -t tianjun9/cheers2019 .
Sending build context to Docker daemon 12.8kB
Step 1/9 : FROM golang:1.11-alpine AS builder
---> e116d2efa2ab
Step 2/9 : RUN apk add --no-cache git
---> Using cache
---> 85616f85377b
Step 3/9 : RUN go get github.com/pdevine/go-asciisprite
---> Running in 777d75acad82
OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/bin/sh": stat /bin/sh: no such file or directory": unknown
PS C:...\docker\doodle\cheers2019>

I need your help! Thank you 10000000 times!

Disable git sslverify

When using these docker (samples/doodles) on a machine in a network that has a firewall in place that does deep packet inspection (eg enterprise environment), there will always be a self-signed certificate in the chain.

Is it possible to add RUN git config --global http.sslVerify "false" to the Docker files?

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.