CNAB: A package format for the cloud

linux.com – Installing a new app on your phone is simple. So is installing one on your Mac, Linux box, or PC. It should be just as simple to install a distributed application into your cloud — this is the goal o…
Quelle: news.kubernauts.io

NetApp to Acquire Spot

netapp.com – SUNNYVALE, CA—June 3, 2020—NetApp® (NASDAQ: NTAP), the leader in cloud data services, today announced it has entered into a definitive agreement to acquire Spot, a leader in compute management and co…
Quelle: news.kubernauts.io

Multi-arch build, what about CircleCI?

Following the previous article where we saw how to build multi arch images using GitHub Actions, we will now show how to do the same thing using another CI. In this article, we’ll consider CircleCI, which is one of the most used CI SaaS.

To start building your image with CircleCI, you will first need to create .circleci/config.yml file:

version: 2jobs:  build:    docker:      – image: docker:stable    steps:      – checkout      – setup_remote_docker:          version: 18.09.3      – run: docker version

You may notice that we specified using version 18.09.3 of the Docker Engine because buildx requires version 18.09 or later but CircleCI doesn’t provide any version above 18.09.3.

At this point we are able to interact with the Docker CLI but we don’t yet have the buildx plugin installed. To install it, we will download a build from GitHub.

version: 2jobs:  build:    docker:      – image: docker:stable    steps:      – checkout      – setup_remote_docker:          version: 18.09.3      – run: apk add make curl      – run: mkdir -vp ~/.docker/cli-plugins/      – run: curl –silent -L –output ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64      – run: chmod a+x ~/.docker/cli-plugins/docker-buildx      – run: docker buildx version

We are now able to use buildx. It’s quite verbose, so instead of reinstalling buildx each time you want to build something, you can use a different origin image with buildx already installed.

version: 2jobs: build:   docker:     – image: jdrouet/docker-with-buildx:stable   steps:     – checkout     – setup_remote_docker:         version: 18.09.3     – run: docker buildx version

Now it’s time to build for multiple architectures. We’ll use the same Dockerfile that we used for the previous article and the same build command:

FROM debian:buster-slimRUN apt-get update   && apt-get install -y curl   && rm -rf /var/lib/apt/lists/*ENTRYPOINT [ “curl” ]

Now modify the CircleCI configuration file as follows:

version: 2jobs: build:   docker:     – image: jdrouet/docker-with-buildx:stable   steps:     – checkout     – setup_remote_docker:         version: 18.09.3     – run: |         docker buildx build           –platform linux/arm/v7,linux/arm64/v8,linux/amd64           –tag your-username/multiarch-example:buildx-latest .

Navigating to the CircleCI build dashboard, you should see the following result:

The last step is now to store the image on the Docker Hub. To do so we’ll need an access token from Docker Hub to get write access.

Once you created it, you’ll have to set it in your repository settings in the Secrets section. We’ll create DOCKER_USERNAME and DOCKER_PASSWORD variables to login afterward.

Once this is done, you can add the login step and the –push to the buildx command as follows:

version: 2jobs: build:   docker:     – image: jdrouet/docker-with-buildx:stable   steps:     – checkout     – setup_remote_docker:         version: 18.09.3     – run: docker login -u “$DOCKER_USERNAME” -p “$DOCKER_PASSWORD”     – run: |         docker buildx build –push           –platform linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/i386,linux/amd64           –tag your-username/multiarch-example:buildx-latest .

And voila, you can now create a multi arch image each time you make a change in your codebase!
The post Multi-arch build, what about CircleCI? appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/

Stack Overflow Survey Reconfirms Developer Love for Docker

The 2020 Stack Overflow Developer Survey confirms what we already knew: there’s a lot of developer love out there for Docker and it is continuing from last year.

Docker was the #1 most wanted platform and #2 most loved platform, according to the survey results published last week. We also ranked as the #3 most popular platform.

That’s no fluke. The results are based on nearly 65,000 people who code. And it’s the second year running we’ve acquitted ourselves so admirably in the annual survey. As we shared with you here last summer, developers ranked Docker as the #1 most wanted platform, #2 most loved platform and #3 most broadly used platform in the 2019 Stack Overflow Developer Survey. Those responses came from nearly 90,000 developers from around the world.

This year, in the most wanted platform category, nearly 25 percent of developers expressed interest in developing with Docker, ahead of AWS (20.2 percent), Kubernetes (18.5 percent) and Linux (16.6 percent).

In the most loved platform category, 73.6 percent of developers expressed interest in continuing to develop with Docker, trailing only first-placed Linux (76.9 percent), and leading Kubernetes (71.1 percent) and AWS (66.4 percent).

And in the most popular platform category, 35 percent of respondents chose Docker, behind first-placed Linux (55 percent) and second-placed Windows (53.1 percent).

The findings underscore that developers really, really like Docker—whether for its device agnosticism, its ability to automate CI/CD or power productivity, or any number of other factors. Last Thursday, our virtual DockerCon event drew some 77,000 registrants. The survey results also validate our renewed strategy to focus on developers and helping them use containers in their applications.

For almost a decade, Stack Overflow’s Developer Survey had the distinction of being the largest survey of people who code around the world. This year’s survey prioritized diversity over quantity, focusing on a wider demographic of programmers worldwide.  The survey also explored the most loved, dreaded and wanted frameworks; developer salaries and careers, community participation and more.

Ready to feel the love? Docker offers free plans for individual developers and teams just starting out. Get started with Docker today.
The post Stack Overflow Survey Reconfirms Developer Love for Docker appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/