Docker for the official Tabcmd client.
cd tabcmd-client-docker/src/main/docker/defailt/
docker build .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_nameThat 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- Create a new docker file that uses this image as a base (e.g.
FROM image_tag_name) - Embedd the content file (twb, twbx, tdsx, tds, tde, hyper) into the image (e.g.
ADD ./<CONTENTFILE> <CONTENTFILE>) - 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>) - Specify to use it as entrypoint (e.g.
ENTRYPOINT ["<BATCHFILE>"])