Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Latest commit

 

History

History
40 lines (28 loc) · 1.45 KB

File metadata and controls

40 lines (28 loc) · 1.45 KB

Containerized Tabcmd client

Docker for the official Tabcmd client.

Build image

    cd tabcmd-client-docker/src/main/docker/defailt/
    docker build .

Use the image to publish data source/workbooks

Run the following command (That will mount the folder (LOCALFOLDER) containing the datasource (CONTENTFILE) you wish to publish as a volume and start an interactive session with publishing script started):

    docker run -v <LOCALFOLDER>:/Data \
        -it -t image_tag_name

That will connect you to the container's terminal. Now sign in to the server:

    cd ./opt/tableau/tabcmd/bin/
    ./tabcmd --accepteula
    ./tabcmd login --no-certcheck --server <SERVER> --username <USERNAME> --password <PASSWORD>

Then trigger the publishing:

    ./tabcmd publish /Data/<CONTENTFILE> -o --no-certcheck

How to create a stand-alone repro container for a publishing failure?

  1. Create a new docker file that uses this image as a base (e.g. FROM image_tag_name)
  2. Embedd the content file (twb, twbx, tdsx, tds, tde, hyper) into the image (e.g. ADD ./<CONTENTFILE> <CONTENTFILE>)
  3. Add bash script to publish that file using either publish_workbook or publish_datasource script that accept server/site/project/username/password as parameters. (e.g. ADD ./<BATCHFILE> <BATCHFILE>)
  4. Specify to use it as entrypoint (e.g. ENTRYPOINT ["<BATCHFILE>"])