Skip to content

Commit

Permalink
Add ENTRYPOINT (#3)
Browse files Browse the repository at this point in the history
* Update ENTRYPOINT

* Update jre version

* Clean up files

* Update README
  • Loading branch information
szyn authored Oct 3, 2017
1 parent 1cd85fb commit 122f64a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 52 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:8u111-jre-alpine
FROM openjdk:8u131-jre-alpine
LABEL maintainer "szyn"

ENV DIGDAG_VERSION 0.9.16
Expand Down Expand Up @@ -28,4 +28,4 @@ RUN apk add --no-cache \
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bash_profile && \
echo 'export PS1="[\[\e[1;34m\]\u\[\e[00m\]@\[\e[0;32m\]\h\[\e[00m\] \[\e[1;34m\]\W\[\e[00m\]]$ "' >> ~/.bashrc

CMD ["java", "-jar", "/usr/local/bin/digdag"]
ENTRYPOINT ["java", "-jar", "/usr/local/bin/digdag"]
53 changes: 26 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,49 @@ If you want to know about digdag more, please read the [Official Document](https

#### Feature
* Easy to use :)
* Can use `py>` `rb>` Operators

### Requirements
* Docker for Mac / Windows

### Usage
You have to install `dogdag` command.

```bash
$ curl https://raw.githubusercontent.com/szyn/docker-digdag/master/provision/install | sh
You can now use `docdag` command.
Run `docdag help` to get started!
```
### Getting started

**[Note]**
`docdag` command is shell script wrapper for `docker run` command.
You can easy to use szyn/docker-digdag image.
But if you don't want to install `dogdag` commnad, you can use following command instead of that.
```bash
$ docker run -it -p 65432:65432 --name docker-digdag \
--rm -v `pwd`:/src szyn/docker-digdag:latest \
java -jar /usr/local/bin/digdag <help>
```

#### Create a New Project

```bash
$ mkdir /path/to/your/project
$ cd /path/to/your/project
$ docdag init <dir>
### Create a new workflow project
$ docker run -it --rm -v `pwd`:/src docker-digdag:latest init -t ruby hello
$ cd hello
$ docker run -it --rm -v `pwd`:/src docker-digdag:latest run -a hello.dig
```

#### Runs Workflow
#### Runs workflow

```console
$ docker run -it --rm -v `pwd`:/src \
szyn/docker-digdag:latest run <workflow.dig> [+task] [options...]

```bash
$ docdag run <workflow.dig> [+task] [options...]
e.g.
$ docker run -it --rm -v `pwd`:/src \
szyn/docker-digdag:latest run -a workflow.dig
```

#### Server Mode
#### Runs server mode

If you want to try server mode, you can do this :)

```bash
$ docdag server --memory -b 0.0.0.0
```console
$ docker run -it -p 65432:65432 --rm -v `pwd`:/src --name docker-digdag \
szyn/docker-digdag:latest server -m -b 0.0.0.0

### If you want to operate server
$ docker exec -it docker-digdag bash
```

Now, you can access to Web UI !
You can also access to the Web Interface!
Please open following address.
http://localhost:65432
http://localhost:65432
6 changes: 0 additions & 6 deletions provision/docdag

This file was deleted.

17 changes: 0 additions & 17 deletions provision/install

This file was deleted.

0 comments on commit 122f64a

Please sign in to comment.