alinanova21 / docker-screeps-server Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The screeps server runs much better with node 6.. maybe you should downgrade it again.
( also see http://support.screeps.com/hc/en-us/community/posts/115000004265-private-server-on-node-7 )
another plus would be that scripts are more compatible to the official servers.
Is there a way to run the latest version of the private server using your Docker image? I seem to be stuck at 4.0.5 even though it appears 4.1.5 is available: https://github.com/screeps/screeps/blob/master/package.json.
If it's just a matter of updating the SCREEPS_VERSION variable in the Dockerfile, then I could do a pull request if you want. But it seems there must be another step to get DockerHub to rebuild the image there, right?
Even better, is it possible to just remove the hard-coded version number so that it will always use the latest available version when it runs?
Thank you
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node-gyp]
2: 0x11e7fec [node-gyp]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node-gyp]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node-gyp]
5: v8::internal::Factory::NewUninitializedFixedArray(int) [node-gyp]
6: 0xdee3b3 [node-gyp]
7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [node-gyp]
8: 0x2695fd2042fd
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] install: node-gyp rebuild --release -j 4
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-10-02T03_07_49_241Z-debug.log
Install for screeps@latest failed with code 134
2018-10-02T03_07_49_241Z-debug.log:
14576 silly install [email protected]
14577 info lifecycle [email protected]~install: [email protected]
14578 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle false
14579 verbose lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/.npm/_npx/43/lib/node_modules/screeps/node_modules/isolated-vm/node_modules/.bin:/root/.npm/_npx/43/lib/node_modules/screeps/node_modules/.bin:/root/.npm/_npx/43/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
14580 verbose lifecycle [email protected]~install: CWD: /root/.npm/_npx/43/lib/node_modules/screeps/node_modules/isolated-vm
14581 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild --release -j 4' ]
14582 silly lifecycle [email protected]~install: Returned: code: 134 signal: null
14583 info lifecycle [email protected]~install: Failed to exec install script
14584 verbose unlock done using /root/.npm/_locks/staging-d4c61f5c68559b1a.lock for /root/.npm/_npx/43/lib/node_modules/.staging
14585 warn [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
14586 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/screeps/node_modules/fsevents):
14587 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
14588 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
14588 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
14588 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
14588 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
14589 verbose stack Error: [email protected] install: `node-gyp rebuild --release -j 4`
14589 verbose stack Exit status 134
14589 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
14589 verbose stack at emitTwo (events.js:126:13)
14589 verbose stack at EventEmitter.emit (events.js:214:7)
14589 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
14589 verbose stack at emitTwo (events.js:126:13)
14589 verbose stack at ChildProcess.emit (events.js:214:7)
14589 verbose stack at maybeClose (internal/child_process.js:925:16)
14589 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14590 verbose pkgid [email protected]
14591 verbose cwd /screeps
14592 verbose Linux 4.15.0-34-generic
14593 verbose argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "install" "screeps@latest" "--global" "--prefix" "/root/.npm/_npx/43" "--loglevel" "error" "--json"
14594 verbose node v8.11.1
14595 verbose npm v5.6.0
14596 error code ELIFECYCLE
14597 error errno 134
14598 error [email protected] install: `node-gyp rebuild --release -j 4`
14598 error Exit status 134
14599 error Failed at the [email protected] install script.
14599 error This is probably not a problem with npm. There is likely additional logging output above.
14600 verbose exit [ 134, true ]
Happens when try to: docker exec -it screeps-server npx screeps cli
Screeps backed complains that iconv-lite is missing after auto-update.
https://hub.docker.com/r/ags131/screeps-server/dockerfile
This dockerfile is significantly older than the dockerfile in your repository :). I'd be glad if you could update it, because I'm trying to add the container via the Docker Frontend on my Synology NAS.
Thanks in advance :).
Hi!
why you do catch the SIGTERM from the docker and kills the node process manually? With SIGKILL ?
https://github.com/ags131/docker-screeps-server/blob/master/entrypoint.sh#L4
starting container failed: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/bin/sh -c\": stat /bin/sh -c: no such file or directory
Can this be done?
Might want to push a fresh image as auto "npm update screeps" is erroring out, and only going into the image and removing screeps and reinstalling fixes it (in order to use 2.3.0 rather than 2.2.2).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.