Skip to content

Commit

Permalink
Docker images with latest tag (#73)
Browse files Browse the repository at this point in the history
* Deploy the latest tag using a newer version of the docker action

* Use the correct tag name in all examples

* Temporarily also build in PRs for testing
  • Loading branch information
nils-braun authored Nov 5, 2020
1 parent 09093ce commit cf6494d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,28 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: nbraun/dask-sql
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nbraun/dask-sql
tag_with_ref: true
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/386
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Read more in the [documentation](https://dask-sql.readthedocs.io/en/latest/).

You can try out `dask-sql` quickly by using the docker command

docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
docker run --rm -it -p 8080:8080 nbraun/dask-sql

See information in the SQL server at the end of this page.

Expand Down Expand Up @@ -162,7 +162,7 @@ You can test the sql presto server by running

or by using the created docker image

docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
docker run --rm -it -p 8080:8080 nbraun/dask-sql

in one terminal. This will spin up a server on port 8080 (by default)
that looks similar to a normal presto database to any presto client.
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ or by using the created docker image

.. code-block:: bash
docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
docker run --rm -it -p 8080:8080 nbraun/dask-sql
This will spin up a server on port 8080 (by default).
The port and bind interfaces can be controlled with the ``--port`` and ``--host`` command line arguments (or options to :func:`dask_sql.run_server`).
Expand Down Expand Up @@ -113,7 +113,7 @@ To run a standalone SQL server in your ``dask`` cluster, follow these three step

.. code-block:: dockerfile
FROM nbraun/dask-sql:0.1.2
FROM nbraun/dask-sql
COPY startup_script.py /opt/dask_sql/startup_script.py
Expand Down

0 comments on commit cf6494d

Please sign in to comment.