CyCoreSystems / docker-meteor

Dockerfile and script for running Meteor on Docker
MIT License
120 stars 73 forks source link

Errors while docker build #40

Closed abate closed 7 years ago

abate commented 7 years ago

I got these errors while building the image with docker built -t myimg .

The problem is in the DockerFile. You use | sh while the script is a bash script. The fix is pretty easy : (curl https://deb.nodesource.com/setup_4.x | bash) && \

## Installing packages required for setup: apt-transport-https lsb-release...

+ apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1
sh: 336: Syntax error: Bad fd number
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
sh: 242: [[: not found
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator

## Confirming "jessie" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/jessie/Release'
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 250: [: Xjessie: unexpected operator
sh: 278: [: Xjessie: unexpected operator

## Adding the NodeSource signing key to your keyring...

sh: 299: [[: not found
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js v4.x LTS Argon repo...

+ echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit http://security.debian.org jessie/updates InRelease
Get:1 https://deb.nodesource.com jessie InRelease [3914 B]
Ign http://deb.debian.org jessie InRelease
Hit http://deb.debian.org jessie-updates InRelease
Get:2 http://security.debian.org jessie/updates/main amd64 Packages [422 kB]
Get:3 https://deb.nodesource.com jessie/main Sources [763 B]
Hit http://deb.debian.org jessie Release.gpg
Get:4 https://deb.nodesource.com jessie/main amd64 Packages [964 B]
Hit http://deb.debian.org jessie Release
Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:6 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 9509 kB in 3s (2680 kB/s)
Reading package lists...
sh: 78: [[: not found
sh: 79: XNode.js v4.x LTS Argon: not found
sh: 80: XNode.js v4.x LTS Argon: not found
sh: 81: XNode.js v4.x LTS Argon: not found
sh: 109: [: XNode.js v4.x LTS Argon: unexpected operator
sh: 139: [: XNode.js v4.x LTS Argon: unexpected operator

## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  jq nodejs rlwrap
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 9217 kB of archives.
After this operation, 43.6 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_4.x/ jessie/main nodejs amd64 4.7.0-1nodesource1~jessie1 [9040 kB]
Get:2 http://deb.debian.org/debian/ jessie/main jq amd64 1.4-2.1 [102 kB]
Get:3 http://deb.debian.org/debian/ jessie/main rlwrap amd64 0.41-1 [75.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Ulexus commented 7 years ago

Aha, thanks @abate ! Fixed in dc84fb65c3c1bd472de89bc16fa020b23818dcae