Skip to content

Commit 82c4da4

Browse files
authored
Merge pull request #262 from intel/update-branch
fix make file to be SDL comliant and only expose ports to localhost (#719)
2 parents 376334b + 3439314 commit 82c4da4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

usecases/real-time/tcc_tutorial/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# SPDX-License-Identifier: BSD-3-Clause
3030
####################################################################################
3131
CC=gcc
32-
CFLAGS=-Wall -Wextra -O2 -I/usr/local/include
32+
CFLAGS=-Wall -Wextra -fcf-protection=full -Wformat -Wmissing-field-initializers -Wformat-security -fPIC -fPIE -pie -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstack-protector -O2 -I/usr/local/include
3333
LDFLAGS=-L/usr/local/lib -lpaho-mqtt3c -lcjson
3434
TARGET=rt_linux_tutorial
3535
OBJ=rt_linux_tutorial.o pointer_chasing.o

usecases/real-time/tcc_tutorial/docker/docker-compose/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ services:
3939
container_name: mosquitto
4040
restart: always
4141
ports:
42-
- "1883:1883"
43-
- "9001:9001"
42+
- "127.0.0.1:1883:1883"
43+
- "127.0.0.1:9001:9001"
4444
networks:
4545
- stats
4646
volumes:
@@ -56,7 +56,7 @@ services:
5656
container_name: influxdb
5757
restart: always
5858
ports:
59-
- "8086:8086"
59+
- "127.0.0.1:8086:8086"
6060
networks:
6161
- stats
6262
volumes:
@@ -99,7 +99,7 @@ services:
9999
restart: always
100100
user: "1000"
101101
ports:
102-
- "3000:3000"
102+
- "127.0.0.1:3000:3000"
103103
networks:
104104
- stats
105105
volumes:

0 commit comments

Comments
 (0)