Skip to content

Instantly share code, notes, and snippets.

@cyanide-burnout
Last active October 1, 2023 07:42
Show Gist options
  • Save cyanide-burnout/5142de436d258aa834a203107c92ae93 to your computer and use it in GitHub Desktop.
Save cyanide-burnout/5142de436d258aa834a203107c92ae93 to your computer and use it in GitHub Desktop.
Tableau WDC 3.0 taco-toolkit in Docker
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y ca-certificates curl gnupg python3 build-essential
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs
RUN curl -O https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
RUN apt-get install -y ./jdk-21_linux-x64_bin.deb
RUN npm install -g @tableau/taco-toolkit@1.2.0
RUN taco -V --accept-eula
ENTRYPOINT ["/usr/bin/env", "--chdir=/mnt", "/bin/bash", "-c"]
CMD ["taco build && taco pack"]
@cyanide-burnout
Copy link
Author

cyanide-burnout commented Sep 29, 2023

Build image:
docker build --no-cache -f taco-toolkit.dockerfile -t <image name>:latest .

Build .taco package:
docker run -it --volume=$(pwd):/mnt <image name>:latest

Create taco project:
docker run -it --volume=$(pwd):/mnt <image name>:latest "taco create <project name> --boilerplate earthquake-data"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment