Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
a0cd1690
Commit
a0cd1690
authored
Apr 12, 2020
by
John Selbie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/jselbie/stunserver
parents
7af61073
e6b87c56
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
12 deletions
+37
-12
Dockerfile
Dockerfile
+13
-5
Makefile
Makefile
+6
-0
client/Makefile
client/Makefile
+2
-1
common.inc
common.inc
+14
-2
server/Makefile
server/Makefile
+1
-1
testcode/Makefile
testcode/Makefile
+1
-3
No files found.
Dockerfile
View file @
a0cd1690
FROM
ubuntu:latest
EXPOSE
3478/tcp 3478/udp
USER
root
FROM
ubuntu:18.04 as build
RUN
set
-ex
&&
\
apt-get update
&&
\
...
...
@@ -17,8 +13,20 @@ RUN set -ex && \
RUN
cd
/opt
&&
git clone https://github.com/jselbie/stunserver.git
&&
cd
stunserver
&&
make
FROM
ubuntu:18.04
EXPOSE
3478/tcp 3478/udp
RUN
apt update
&&
apt
install
libssl1.1
&&
apt-get clean
RUN
mkdir
/opt/stunserver
COPY
--from=build /opt/stunserver/stunclient /opt/stunserver/stunclient
COPY
--from=build /opt/stunserver/stunserver /opt/stunserver/stunserver
WORKDIR
/opt/stunserver
HEALTHCHECK
CMD /opt/stunserver/stunclient localhost
ENTRYPOINT
["/opt/stunserver/stunserver"]
Makefile
View file @
a0cd1690
...
...
@@ -23,6 +23,12 @@ debug: all
profile
:
T := profile
profile
:
all
pgo1
:
T := pgo1
pgo1
:
all
pgo2
:
T := pgo2
pgo2
:
all
clean
:
T := clean
clean
:
everything
rm
-f
stunserver stunclient stuntestcode
...
...
client/Makefile
View file @
a0cd1690
...
...
@@ -15,6 +15,7 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
common.inc
View file @
a0cd1690
...
...
@@ -8,11 +8,13 @@ DEFINES := -DNDEBUG
STANDARD_FLAGS
:=
-
Wall
-
Wuninitialized
RELEASE_FLAGS
:=
-
O
2
RELEASE_FLAGS
:=
-
O
3
DEBUG_FLAGS
:=
-
g
PROFILE_FLAGS
:=
-
O
2
-
g
PROFILE_FLAGS
:=
-
O
3
-
g
FLAVOR_FLAGS
=
$
(
RELEASE_FLAGS
)
CRYPTO_LIBS
:=
-
lcrypto
PGO1_FLAGS
:=
-
fprofile
-
generate
-
fprofile
-
dir
=/
home
/
jselbie
/
profile
PGO2_FLAGS
:=
-
fprofile
-
use
-
fprofile
-
dir
=/
home
/
jselbie
/
profile
#SOLARIS HACK
...
...
@@ -54,3 +56,13 @@ profile: FLAVOR_FLAGS = $(PROFILE_FLAGS)
profile
:
all
pgo1
:
FLAVOR_FLAGS
=
$
(
PGO1_FLAGS
)
$
(
RELEASE_FLAGS
)
pgo1
:
PGO_LINK_FLAGS
=
$
(
PGO1_FLAGS
)
pgo1
:
all
pgo2
:
FLAVOR_FLAGS
=
$
(
PGO2_FLAGS
)
$
(
RELEASE_FLAGS
)
pgo2
:
PGO_LINK_FLAGS
=
$
(
PGO2_FLAGS
)
pgo2
:
all
server/Makefile
View file @
a0cd1690
...
...
@@ -14,6 +14,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
testcode/Makefile
View file @
a0cd1690
...
...
@@ -14,7 +14,5 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
$(PGO_LINK_FLAGS)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment