Skip to content

Building docker container fails #36

@archjeb

Description

@archjeb

Step 26/28 : RUN if [ "$BUILD_ENV" = "production" ]; then bundle install --without development test; else bundle install; fi
---> Running in aa2dd0bdfc39
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.......
Fetching https://github.com/timwaters/actionpack-action_caching
Fetching https://github.com/rails-api/active_model_serializers
Your bundle is locked to mimemagic (0.3.3), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.3) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.3) that hasn't been removed
in order to install.
ERROR: Service 'web' failed to build: The command '/bin/sh -c if [ "$BUILD_ENV" = "production" ]; then bundle install --without development test; else bundle install; fi' returned a non-zero code: 7

To try and deal with the issue with the mimemagic (0.3.3), tried to change the RUN line in Docker file
...not difference but still fails on building service

Removing intermediate container 47eb3db2850e
Step 26/28 : RUN if [ "$BUILD_ENV" = "production" ]; then bundle install --deployment --redownload --without development test; else bundle install --deployment --redownload; fi
---> Running in 4a28af4b6128

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.......
Fetching https://github.com/timwaters/actionpack-action_caching
Fetching https://github.com/rails-api/active_model_serializers
Your bundle is locked to mimemagic (0.3.3), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.3) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.3) that hasn't been removed
in order to install.
ERROR: Service 'web' failed to build: The command '/bin/sh -c if [ "$BUILD_ENV" = "production" ]; then bundle install --deployment --redownload --without development test; else bundle install --deployment --redownload; fi' returned a non-zero code: 7

###########
Tested on:
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-209.git7d71120.el7.centos.x86_64
Go version: go1.10.3
Git commit: 7d71120/1.13.1
Built: Wed Mar 2 15:25:43 2022
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-209.git7d71120.el7.centos.x86_64
Go version: go1.10.3
Git commit: 7d71120/1.13.1
Built: Wed Mar 2 15:25:43 2022
OS/Arch: linux/amd64
Experimental: false

And also on:

Client:
Version: 20.10.7
API version: 1.41
Go version: go1.13.8
Git commit: 20.10.7-0ubuntu5~18.04.3
Built: Mon Nov 1 01:04:14 2021
OS/Arch: linux/amd64
Context: default
Experimental: true

Server:
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.8
Git commit: 20.10.7-0ubuntu518.04.3
Built: Fri Oct 22 00:57:37 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.5-0ubuntu3
18.04.2
GitCommit:
runc:
Version: 1.0.1-0ubuntu2~18.04.1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions