Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from thomaslorentsen/feature/expose_port
Browse files Browse the repository at this point in the history
Expose port
  • Loading branch information
thomaslorentsen authored Aug 14, 2017
2 parents 8ebaacf + ec6b4e1 commit 5c0526d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install:
before_script:
# Build docker image
- docker build -t adyen-card-tester .
- docker run -d -p 127.0.0.1:80:5000 -e ADYEN_KEY="adyen public key" --name adyen-card-tester adyen-card-tester
- docker run -d -p 127.0.0.1:80:4444 -e ADYEN_KEY="adyen public key" --name adyen-card-tester adyen-card-tester
- wget --quiet 127.0.0.1:80

script:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ COPY app.js .
COPY js js
COPY views views

EXPOSE 4444

CMD [ "node", "app.js" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker pull imacatlol/adyen-card-tester
Then run the container with the following command and replace ```ADYEN_KEY``` with your Adyen public key.
```bash
docker run -d --name adyen-card-tester \
-p 127.0.0.1:4444:5000 \
-p 127.0.0.1:4444:4444 \
-e ADYEN_KEY="adyen public key" \
imacatlol/adyen-card-tester
```
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ app.get('/cvc', function(req, res) {
res.render('cvc', { apiKey: apiKey, cardActive: '', cvcActive: 'active' })
});

server = app.listen(5000)
server = app.listen(4444)

module.exports = server

0 comments on commit 5c0526d

Please sign in to comment.