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

Commit

Permalink
Change setup process to use Docker (close snowplow#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Boocock authored and paulboocock committed Feb 7, 2020
1 parent 43a0090 commit 1b4f191
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 116 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:8.12.0-alpine

RUN apk add git
RUN npm install -g grunt-cli

WORKDIR /usr/src/app

COPY package.json ./
RUN npm install

COPY . .
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[![Build Status][travis-image]][travis]
[![Selenium Test Status][saucelabs-button-image]][saucelabs]
[![Code Climate][codeclimate-image]][codeclimate]
[![Built with Grunt][grunt-image]][grunt]
[![License][license-image]][bsd]
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/gh/snowplow/snowplow-javascript-tracker/badge?style=rounded)](https://www.jsdelivr.com/package/gh/snowplow/snowplow-javascript-tracker)

Expand All @@ -27,16 +26,16 @@ client-side tier of your websites and web apps.

### Contributing quickstart

Assuming git, [Vagrant][vagrant-install] and [VirtualBox][virtualbox-install] installed:
Assuming git and [Docker][docker-install] installed:

```
host$ git clone https://github.com/snowplow/snowplow-javascript-tracker.git
host$ cd snowplow-javascript-tracker
host$ vagrant up && vagrant ssh
guest$ cd /vagrant
guest$ sudo npm install
guest$ cd core
guest$ sudo npm install
host$ docker build -t tracker .
host$ docker run tracker grunt
host$ cd core
host$ docker build -t core .
host$ docker run core grunt
```

Set up an `./aws.json` file using the example `./aws.sample.json`. If you just want to concat +
Expand All @@ -61,8 +60,7 @@ Licensed under the [Simplified BSD][bsd] license.

[snowplow]: http://snowplowanalytics.com/

[vagrant-install]: http://docs.vagrantup.com/v2/installation/index.html
[virtualbox-install]: https://www.virtualbox.org/wiki/Downloads
[docker-install]: https://docs.docker.com/install/

[piwik]: http://piwik.org/
[piwikjs]: https://github.com/piwik/piwik/blob/master/js/piwik.js
Expand Down
29 changes: 0 additions & 29 deletions Vagrantfile

This file was deleted.

2 changes: 2 additions & 0 deletions core/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
10 changes: 10 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:8.12.0-alpine

RUN npm install -g grunt-cli

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install

COPY . .
3 changes: 0 additions & 3 deletions vagrant/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions vagrant/ansible.hosts

This file was deleted.

14 changes: 0 additions & 14 deletions vagrant/peru.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions vagrant/up.bash

This file was deleted.

6 changes: 0 additions & 6 deletions vagrant/up.guidance

This file was deleted.

3 changes: 0 additions & 3 deletions vagrant/up.playbooks

This file was deleted.

0 comments on commit 1b4f191

Please sign in to comment.