Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build js in docker image #58

Merged
merged 1 commit into from
May 20, 2015
Merged

Build js in docker image #58

merged 1 commit into from
May 20, 2015

Conversation

davkal
Copy link
Contributor

@davkal davkal commented May 19, 2015

No description provided.

@davkal
Copy link
Contributor Author

davkal commented May 19, 2015

Build runs through using docker build -t weave/scopeui .

...
Removing intermediate container f0c6c3d7910e
Step 5 : ADD . /app
 ---> 6c38dbc573c8
Removing intermediate container 25d4baff620b
Step 6 : CMD gulp
 ---> Running in 564f1fc4daaa
 ---> 09f837119735
Removing intermediate container 564f1fc4daaa
Successfully built 09f837119735

but there is no dist dir :(

$ docker run weave/scopeui ls
Dockerfile
README.md
app
gulpfile.js
node_modules
package.json
test

@tomwilkie any idea?

RUN npm install

# source files are current dir
ADD . /app

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor

Try running with docker run -v ./app:/app weave/scopeui

@davkal
Copy link
Contributor Author

davkal commented May 19, 2015

@tomwilkie relative paths dont fly. But this line works:
docker run -v $GOPATH/src/github.com/weaveworks/scope/client:/app weaveworks/scope-build

Over to you.

@tomwilkie
Copy link
Contributor

This fixes #12

@tomwilkie tomwilkie force-pushed the build-js-v2 branch 6 times, most recently from db3e1c1 to 5cf245d Compare May 20, 2015 10:21
@tomwilkie
Copy link
Contributor

@davkal this is GTG; PTAL and LGTM!

@davkal
Copy link
Contributor Author

davkal commented May 20, 2015

Works great!

  • I got into trouble when I had an old client/dist dir lying around, the JS was not built then
  • maybe depend on client/dist/scripts/bundle.js, client/dist/styles/main.css and client/dist/index.html instead

- Add Dockerfile for js build image
- Wire up dockerized-ui build to the makefile.
- Removed unused dev tools from package.json/gulp
tomwilkie added a commit that referenced this pull request May 20, 2015
@tomwilkie tomwilkie merged commit f207e6a into master May 20, 2015
@tomwilkie tomwilkie deleted the build-js-v2 branch May 20, 2015 10:48
iaguis added a commit to kinvolk-archives/scope that referenced this pull request Jan 9, 2017
4b7d5c6 Merge pull request weaveworks#59 from weaveworks/57-fix-lint-properly
b7f0e69 Merge pull request weaveworks#58 from weaveworks/fix-lint
794702c Pin version of shfmt
ab1b11d Fix lint
81d80f3 Merge pull request weaveworks#55 from weaveworks/lint-tf
05ad5f2 Review feedback
4c0d046 Use hclfmt to lint terraform.
fd875e2 Fix test wrt shellcheck
54ec2d9 Don't capitalise error messages
19d3b6e Merge pull request weaveworks#49 from weaveworks/pin-shfmt
fea98f6 Go get from the vendor dir
1d867b0 Try and vendor a specific version of shfmt
76619c2 Merge pull request weaveworks#48 from weaveworks/revert-41-user-tokens
4f96c51 Revert "Add experimental support for user tokens"
d00033f Merge pull request weaveworks#41 from weaveworks/user-tokens
245ed26 Merge pull request weaveworks#47 from weaveworks/46-shfmt
c1d7815 Fix shfmt error
cb39746 Don't overright lint_result with 0 when shellcheck succeeds
8ab80e8 Merge pull request weaveworks#45 from weaveworks/lint
83d5bd1 getting integration/config and test shellcheck-compliant
cff9ec3 Fix some shellcheck errors
7a843d6 run shellcheck as part of lint if it is installed
31552a0 removing spurious space from test
6ca7c5f Merge pull request weaveworks#44 from weaveworks/shfmt
952356d Allow lint to lint itself
b7ac59c Run shfmt on all shell files in this repo
5570b0e Add shfmt formatting of shell files in lint
0a67594 fix circle build by splatting gopath permissions
354e083 Fixing lint
586060b Add experimental support for user tokens

git-subtree-dir: tools
git-subtree-split: 4b7d5c6
2opremio pushed a commit that referenced this pull request Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants