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

Adds dockerized development environment #123

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM calbertts/node-gtk

MAINTAINER [email protected]

RUN apt-get update

#Installing required Gulp and Electron Libraries
RUN apt-get install -y libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev libx11-xcb-dev

COPY . /igdm
WORKDIR /igdm

22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,28 @@ To setup this project locally for development purposes please follow the followi

5. Start the application locally by running `npm start`

That's it! :) Now you can have those pull requests rolling in! :D
### Wrapped Local Development with Docker+Nut

To setup this project locally using Docker and Nut tools for development purposes, please follow the following steps:

1. Ensure you have Docker CE installed [See](https://docs.docker.com/install/)

2. Clone this repo by running the command - `git clone https://github.com/ifedapoolarewaju/igdm.git`

3. Navigate to the directory where the repo is cloned to. (e.g `cd igdm`)

4. Download Nut by running `curl -L https://github.com/matthieudelaro/nut/raw/manualbuild/release/linux/nut -o nut && chmod a+x nut`

4. Run `sudo mv nut /usr/local/bin/nut` to move the nut executable to you local binaries *optional step*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo here "you" -> "your" 🙂

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, haven't seen it. :D

If you choose not to execute this step, use the nut commands just by simply adding a `./` before `nut`

5. Start the wrapped application by running `nut run`

6. See your changes by running `nut reload`

If you haven't done the Docker [post-installation step](https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user) just add `sudo` to the nut commands

That's it! :) Now you can have those pull requests rolling in! :D

## License

Expand Down
Binary file added nut
Binary file not shown.
25 changes: 25 additions & 0 deletions nut.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax_version: "7"

docker_image: alaxalves/igdm:latest

enable_gui: true

container_working_directory: /igdm

work_in_project_folder_as: /igdm

volumes:
main:
host_path: .
container_path: /igdm

macros:
run:
actions:
- npm install
- npm run build
- npm run gui
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just npm start, Which runs both gulp build && electron .?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm start would fit here as well. Do you want me to change??


reload:
actions:
- npm run build
Loading