File tree Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 1+ # Prerequisites
2+ * .d
3+
4+ # Compiled Object files
5+ * .slo
6+ * .lo
7+ * .o
8+ * .obj
9+
10+ # Precompiled Headers
11+ * .gch
12+ * .pch
13+
14+ # Compiled Dynamic libraries
15+ * .so
16+ * .dylib
17+ * .dll
18+
19+ # Fortran module files
20+ * .mod
21+ * .smod
22+
23+ # Compiled Static libraries
24+ * .lai
25+ * .la
26+ * .a
27+ * .lib
28+
29+ # Executables
30+ * .exe
31+ * .out
32+ * .app
33+ test /run_tests
34+ progs /server
35+ progs /client
36+ progs /sendfile
37+ progs /recvfile
38+
39+ # Temporary things
40+ temp /
41+ assets /recvfile
42+
43+ # Tags
44+ tags
45+
46+ # Git
47+ .git /
48+ .gitignore
Original file line number Diff line number Diff line change 1+ # start with ubuntu
2+ FROM ubuntu
3+
4+ # it me!
5+ LABEL maintainer="coditva@gmail.com"
6+
7+ # install deps
8+ RUN apt-get update && \
9+ apt-get -y install gcc build-essential
10+
11+ # setup environment
12+ ENV app /root/app/
13+ ENV BUILD_TYPE release
14+
15+ # copy source to app dir
16+ ADD . $app
17+
18+ # change to app dir
19+ WORKDIR $app
20+
21+ # export the library path
22+ RUN echo 'export LD_LIBRARY_PATH=./src/:$LD_LIBRARY_PATH' >> ~/.bashrc
23+
24+ # compile it
25+ RUN make
26+
27+ # drop me in a shell
28+ ENTRYPOINT ["/bin/bash" ]
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ progs/sendfile # start the sendfile server
2323progs/recvfile " file/to/get" " file/to/saveas" # receive the file
2424```
2525
26+ ##### You can also use the dockerfile!
27+ ``` bash
28+ docker build --tag udt . # build the container
29+ docker run -it udt
30+ ```
31+
2632### Progress
2733 - [x] Implement architecture.
2834 - [x] Implement basic API.
You can’t perform that action at this time.
0 commit comments