[GH-ISSUE #37] Docker build #21

Open
opened 2026-02-25 22:30:46 +03:00 by kerem · 0 comments
Owner

Originally created by @xbgmsharp on GitHub (Nov 6, 2020).
Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/37

To ease building package to each distribution, below a sample docker debian:latest compilation workflow. Can be extend to other system. Tested with Debian (buster) and Ubuntu (focal).

$ git clone https://github.com/evgeny-gridasov/openvpn-otp
Debian:
$ docker run -v $(pwd)/openvpn-otp:/openvpn-otp -it debian bash
Ubuntu:
$ docker run -v $(pwd)/openvpn-otp:/openvpn-otp -it ubuntu bash
# apt update
# apt upgrade
# apt install openvpn autoconf automake libtool libssl-dev make
# cd /openvpn-otp
# ./autogen.sh
# ./configure --prefix=/usr --disable-dependency-tracking
# make install
# ls src/.libs/openvpn-otp.*
src/.libs/openvpn-otp.la  src/.libs/openvpn-otp.lai  src/.libs/openvpn-otp.so
$ mkdir -p /usr/lib/openvpn/
$ cp src/.libs/openvpn-otp.* /usr/lib/openvpn/
Originally created by @xbgmsharp on GitHub (Nov 6, 2020). Original GitHub issue: https://github.com/evgeny-gridasov/openvpn-otp/issues/37 To ease building package to each distribution, below a sample docker debian:latest compilation workflow. Can be extend to other system. Tested with Debian (buster) and Ubuntu (focal). ``` $ git clone https://github.com/evgeny-gridasov/openvpn-otp Debian: $ docker run -v $(pwd)/openvpn-otp:/openvpn-otp -it debian bash Ubuntu: $ docker run -v $(pwd)/openvpn-otp:/openvpn-otp -it ubuntu bash # apt update # apt upgrade # apt install openvpn autoconf automake libtool libssl-dev make # cd /openvpn-otp # ./autogen.sh # ./configure --prefix=/usr --disable-dependency-tracking # make install # ls src/.libs/openvpn-otp.* src/.libs/openvpn-otp.la src/.libs/openvpn-otp.lai src/.libs/openvpn-otp.so $ mkdir -p /usr/lib/openvpn/ $ cp src/.libs/openvpn-otp.* /usr/lib/openvpn/ ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-otp#21
No description provided.