Sign inSign up

bigobject/streamer_builder

By bigobject

Updated over 3 years ago

Image
0

1.3K

bigobject/streamer_builder repository overview

Based on ubuntu:18.04 and go1.13.5.linux-amd64

It needs to mount 3 folders and set 3 environment variables,

Folder:

  • /workspace/streamer_go/major/ : major golang code Ex: go_csv2csv_symomdb_order_rd.go
  • /workspace/streamer_go/plugin/: plugin golang code Ex: bigobject_func.go, customer_func.go, filter.go
  • /workspace/output/: output the binary streamer executable file Ex: go_json2csv.so run_sagent_symomdb_order_rd.sh sagent_symomdb_order_rd
SVT version
  • /workspace/streamer_go/svt/: svt code (svt version)

Environment variables

  • PROD: product name Ex: symomdb_order_rd
  • GOCONVERTER: default is csv2csv Ex: csv2csv
  • RUN_BASH: will not make, just run this container in background Ex: true

Docker Compose file

docker-compose -f docker-compose.yml up

 
version: '3'
services:
    streamer_builder:
        image: bigobject/streamer_builder
        container_name: streamer_builder
        volumes:
            - ./major/:/workspace/streamer_go/major/
            - ./plugin/:/workspace/streamer_go/plugin/
            - ./output/:/workspace/output
        environment:
            PROD: symomdb_order_rd
            GOCONVERTER: csv2csv
            #RUN_BASH: 'true'
SVT version
 
version: '3'
services:
    streamer_builder:
        image: bigobject/streamer_builder:svt
        container_name: streamer_builder
        volumes:
            #- ./major/:/workspace/streamer_go/major/
            #- ./plugin/:/workspace/streamer_go/plugin/ # Optional
            #- ./svt/:/workspace/streamer_go/svt/ # Optional
            - ./output/:/workspace/output
        environment:
            PROD: symomdb_order_rd
            GOCONVERTER: csv2csv
            #RUN_BASH: 'true'

Docker Run Example

docker run --rm -v $PWD/major:/workspace/streamer_go/major/ -v $PWD/plugin:/workspace/streamer_go/plugin/ -v $PWD/output:/workspace/output -e PROD=symomdb_order_rd -e GOCONVERTER=csv2csv -e RUN_BASH=true bigobject/streamer_builder

Tag summary

Content type

Image

Digest

sha256:c81c219a6

Size

549.9 MB

Last updated

over 3 years ago

docker pull bigobject/streamer_builder