-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: Updated output to include troubleshooting
- Loading branch information
Jesse Olsen
committed
Jul 31, 2017
1 parent
6292a49
commit 64bd8bb
Showing
3 changed files
with
102 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,6 @@ | |
|
||
FROM alpine:3.5 | ||
|
||
COPY docker_entry.sh /usr/local/bin/ | ||
COPY docker_go.sh /go.sh | ||
|
||
RUN adduser -Ds /bin/bash docker | ||
|
||
############################################################################### | ||
|
@@ -51,7 +48,7 @@ RUN npm config set https-proxy $http_proxy | |
|
||
# 3. Install Hubot | ||
|
||
RUN npm install -g yo generator-hubot | ||
RUN npm install -g yo generator-hubot css-what css-select | ||
|
||
############################################################################### | ||
USER docker | ||
|
@@ -82,16 +79,16 @@ RUN cd /usr/lib/node_modules/npm; npm install fs-extra; \ | |
USER docker | ||
|
||
|
||
RUN npm install [email protected]; \ | ||
npm install hubot-test-helper@^1.3.0; \ | ||
npm install amqp@^0.2.6; \ | ||
npm install d3@^4.2.7; \ | ||
npm install jsdom@^9.8.0; \ | ||
npm install svg2png@^4.0.0; \ | ||
npm install [email protected]; \ | ||
npm install nlp_compromise@^6.5.0; \ | ||
npm install request@^2.75.0; \ | ||
npm install request-promise@^4.1.1; | ||
RUN npm install [email protected] \ | ||
hubot-test-helper@^1.3.0 \ | ||
amqp@^0.2.6 \ | ||
d3@^4.2.7 \ | ||
jsdom@^9.8.0 \ | ||
svg2png@^4.0.0 \ | ||
[email protected] \ | ||
nlp_compromise@^6.5.0 \ | ||
request@^2.75.0 \ | ||
request-promise@^4.1.1; | ||
|
||
|
||
RUN npm install babel-plugin-transform-function-bind; \ | ||
|
@@ -120,21 +117,21 @@ RUN npm install -g gulp; \ | |
npm install gulp-task-listing@^1.0.1; \ | ||
npm install gulp-util@^3.0.7 | ||
|
||
RUN npm install [email protected]; \ | ||
npm install hubot-test-helper@^1.3.0; \ | ||
npm install amqp@^0.2.6; \ | ||
npm install d3@^4.2.7; \ | ||
npm install jsdom@^9.8.0; \ | ||
npm install svg2png@^4.0.0; \ | ||
npm install [email protected]; \ | ||
npm install nlp_compromise@^6.5.0; \ | ||
npm install request@^2.75.0; \ | ||
npm install request-promise@^4.1.1; \ | ||
npm install babel-core; \ | ||
npm install babel-plugin-transform-function-bind; \ | ||
npm install babel-preset-es2015@^6.16.0; \ | ||
npm install babel-register; \ | ||
npm install del@^2.2.2; | ||
RUN npm install [email protected] \ | ||
hubot-test-helper@^1.3.0 \ | ||
amqp@^0.2.6 \ | ||
d3@^4.2.7 \ | ||
jsdom@^9.8.0 \ | ||
svg2png@^4.0.0 \ | ||
[email protected] \ | ||
nlp_compromise@^6.5.0 \ | ||
request@^2.75.0 \ | ||
request-promise@^4.1.1 \ | ||
babel-core \ | ||
babel-plugin-transform-function-bind \ | ||
babel-preset-es2015@^6.16.0 \ | ||
babel-register \ | ||
del@^2.2.2; | ||
|
||
|
||
# 5. Copy config file | ||
|
@@ -143,5 +140,8 @@ RUN npm install [email protected]; \ | |
# 8. Run bin/hubot (docker_go.sh handles this, called by docker_run.sh) | ||
# 9. Test your bot (instructions presented by docker_go.sh) | ||
|
||
COPY docker_entry.sh /usr/local/bin/ | ||
COPY docker_go.sh /go.sh | ||
|
||
ENTRYPOINT ["sh", "/usr/local/bin/docker_entry.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
su docker -c "/go.sh" | ||
sh | ||
if [ $? -ne 10 ]; then | ||
sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters