Docker Image for Form 2439


These instructions assume you are familiar with Docker technology
including deploying Docker containers as microservices.

Microservice Version

1. Install Google Cloud Command Line Tool (gcloud CLI)

See One-Time Authorization Set Up below.

2. Download the image to your computer

docker pull us-central1-docker.pkg.dev/taxdochub-endpoints/tax-doc-server-tax2439/tax2439-generator:latest

3. For Testing — Run the Docker app on your computer

docker run --publish 8080:8080 us-central1-docker.pkg.dev/taxdochub-endpoints/tax-doc-server-tax2439/tax2439-generator:latest

4. Perform Tests — POST JSON to the microservice

Example IntelliJ .http file

POST http://localhost:8080/fdx/v6/tax-forms
Content-Type: application/json
Accept: application/pdf
< Tax2439.json

Example curl command

curl --request POST --location "http://localhost:8080/fdx/v6/tax-forms" \
     --header "Content-Type: application/json" \
     --header "Accept: application/pdf" \
     --data Tax2439.json

5. For Production — Build and Deploy Container

Follow the procedures applicable to your server hosting service.

Command Line Version

1. Install Google Cloud Command Line Tool (gcloud CLI)

See One-Time Authorization Set Up below.

2. Download the image to your computer

docker pull us-central1-docker.pkg.dev/taxdochub-endpoints/tax-doc-generator-tax2439-cli/tax2439-generator-cli:latest

3. Place CSV file in folder to be shared with Docker

Sample CSV file

/Users/yourname/docker-share/tax2439/csv/issuerxyz.csv

4. Run the Docker app on your computer

share=/Users/yourname/docker-share
docker container run --detach --interactive --tty --name tax2439-generator-cli-latest --volume ${share}:/var/shared-folder tax2439-generator-cli:latest

5. Execute the Job

docker container exec tax2439-generator-cli-latest sh run.sh

See results in /Users/yourname/docker-share/tax2439/pdf-print, pdf-download, pdf-issuer, and other folders

 

One-Time Authorization Setup