Public | Automated Build

Last pushed: 8 months ago
Short Description
Docker container used to allows Visual Studio to build a Linux application.
Full Description

Visual Studio Linux Build Box

This image is used to allows Visual Studio to build a Linux application.
The official Microsoft tutorial Visual C++ for Linux Development.

How to use it

How launch the build box

The image expose an SSH server on port 22. The credential is:

  • Login root
  • password toor

So to launch the build box, execute this command on your linux docker host

 docker run -d -p 12345:22 --security-opt seccomp:unconfined visual-studio-linux-build-box

How connect to your Visual Studio

On your Visual Studio go to Tools > Options > Cross Platform > Linux and enter the credential

  • Hostname: IP or hostname of your docker host
  • Port: The port you have pass in the previous command ( 12345 for example)
  • Username: root
  • Authentication type: password
  • Password: toor

Extends

You can extends the build image to include some dependencies.

For example, the mongo-c driver


FROM visual-studio-linux-build-box

RUN apt-get update && \
    apt-get install -y libxml2-dev pkg-config libssl-dev libsasl2-dev automake autoconf libtool && \
    git clone https://github.com/mongodb/mongo-c-driver.git && \
    cd mongo-c-driver && \
    git checkout 1.3.5 && \
    ./autogen.sh && \
    make && make install
Docker Pull Command
Owner
ducatel

Comments (3)
mahdi101
3 months ago

thanks its help me alot

avranju
4 months ago

--security-opt seccomp:unconfined was the magic pixie dust that made it work for my own container. Thanks a lot!

robotdad
7 months ago

This is excellent, thanks!