question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make rust based implementations work in the docker container

See original GitHub issue

@Pauan I’ve opened that issue for working on the rust based frameworks.

The ultimate goal is to perform the build in the docker containter (https://github.com/krausest/js-framework-benchmark/issues/546#issuecomment-488811952). Here are the (erratic) steps I tried so far: npm install --save-dev rimraf webpack webpack-cli @wasm-tool/wasm-pack-plugin
Use rust-up to install rust (will be baked into the docker image at some point) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Is there a better way to get a specific version? source $HOME/.cargo/env

Now rust seems to be installed:

[root@550cf95bb54a dominator]# rust -V
bash: rust: command not found
[root@550cf95bb54a dominator]# rustc -V
rustc 1.35.0 (3c235d560 2019-05-20)
[root@550cf95bb54a dominator]# 

Then try to build: npm run build-force:

[root@550cf95bb54a dominator]# npm run build-prod-force

> js-framework-benchmark-dominator@1.0.0 build-prod-force /build/frameworks/keyed/dominator
> rimraf bundled-dist pkg && webpack

🧐  Checking for wasm-pack...

ℹ️  Installing wasm-pack 

wasm-pack error: undefined

ERROR in ./js/index.js
Module not found: Error: Can't resolve '../pkg/index.js' in '/build/frameworks/keyed/dominator/js'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! js-framework-benchmark-dominator@1.0.0 build-prod-force: `rimraf bundled-dist pkg && webpack`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the js-framework-benchmark-dominator@1.0.0 build-prod-force 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/2019-06-23T15_44_37_758Z-debug.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
krausestcommented, Jun 23, 2019

Thanks - it worked when installed manually. Now I’ll try to somehow integrate it into to the docker build (might take some days). I’ll report back.

0reactions
krausestcommented, Jun 30, 2019

Great - thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Container Runtime in Rust — Part 0 | by Branimir Malesevic
We'll run an alpine container, list the process on the host system, inspect its namespaces, and docker exec into it with SETNS. After...
Read more >
containers/youki: A container runtime written in Rust - GitHub
youki is an implementation of the OCI runtime-spec in Rust, similar to runc. Your ideas are welcome here. About the name. youki is...
Read more >
Containerize Rust Application with Docker - Knoldus Blogs
Docker is a tool that allows users to easily deploy their applications in a container to run on the host operating system.
Read more >
Simplify Your Deployments Using the Rust Official Image
The simplest way to use the Rust image is by running it as a Rust container. First, enter the docker pull rust command...
Read more >
Containers from first principles with Rust - DEV Community ‍ ‍
For Linux-based OSes: Ruboxer implements a very limited subset of features found in proper container runtimes such as Docker and Kubernetes, and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found