Just jotting this down for my own reference.

I keep forgetting how to set up this little piece of hardware in a Docker container using Portainer, so here’s a quick guide for future reference:
Plug USB to the host computer.
Creates 2 “ports”:
1. /dev/ttyACM1
2. /dev/ttyACM0
Install a new container in portainer. Settings:


From the host get into the container
docker exec -it lorawan_ubunto /bin/bash
Do an update and upgrade as root
apt-get update
apt-get upgrade
Install Git along with some other necessary packages.
apt-get install git
apt-get install minicom
apt-get install make
apt-get install libc6-dev
apt-get install vim
Go to the /home directory and retrieve the package forwarder.
cd /home
git clone https://github.com/Lora-net/sx1302_hal
Compile the source
cd /home/sx1302_hal
make
Some error messages might come up. Seems to be not important
cd home/sx1302_hal/packet_forwarder
./lora_pkt_fwd -c global_conf.json.sx1250.EU868.USB
If everything works as expected, a lot of information will appear on the screen. All we need from that is the device ID.

Edit the global_conf.json.sx1250.EU686.USB file in /home/sx1302_hal/packet_forwarder
"gateway_conf": {
"gateway_ID": "XXXXXXXXX", /*The concentrator EUI*/
/* change with default server address/ports */
"server_address": "eu1.cloud.thethings.network", /*The server address */
"serv_port_up": 1700, /*The port*/
"serv_port_down": 1700, /*The port*/
/* adjust the following parameters for your network */
"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,
/* forward only valid packets */
"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false,
/* GPS configuration */
"gps_tty_path": "/dev/ttyACM1", /* The gps device */
/* GPS reference coordinates */
"ref_latitude": 0.0,
"ref_longitude": 0.0,
"ref_altitude": 0,
/* Beaconing parameters */
"beacon_period": 0,
"beacon_freq_hz": 869525000,
"beacon_datarate": 9,
"beacon_bw_hz": 125000,
"beacon_power": 14,
"beacon_infodesc": 0
},
No need to create the gateway. Already there. https://eu1.cloud.thethings.network/console/gateways