GithubHelp home page GithubHelp logo

cs255-docker-llvm's Introduction

cs255-docker-llvm

This repositorary is designed for 2018 Spring - CS255/455 Software Analysis and Improvments LLVM Project. It contains the docker with Ubuntu 16.04 and LLVM/Clang 3.9.1.

Here is the official guide about how to install docker on different operating systems. Install Docker

Build the image

$ docker build -t cs255-llvm-image /PATH/TO/THE/DOCKERFILE

# Or, you can directly pull the image from Docker Hub
$ docker pull noyafangzhou/cs255-llvm-image

Run the image

Notes that the cs255-llvm-loop is the directory that contains the code template. You have to clone it first and then add it to the docker container using the following command. Also, Capital Letters CANNOT appear on the path to cs255-llvm-pass directory.

# build docker image through Dockerfile
$ docker run -it -v $PWD/cs255-llvm-loop:/cs255-llvm-loop --name cs255-llvm cs255-llvm-image /bin/bash

# push docker image through docker hub
$ docker run -it -v $PWD/cs255-llvm-loop:/cs255-llvm-loop --name cs255-llvm noyafangzhou/cs255-llvm-image /bin/bash

Notes that you should type the previous command under the path that contains the cs255-llvm-loop dir.

Usefule Docker Command

# List all the image
$ docker image ls

# List all the container
$ docker ps -a

# Exit the container
$ exit

# Restart the container after quit
$ docker start -ai #{CONTAINER_NAME}

# Remove the image
$ docker rmi #{IMAGE_NAME}

# Remove the container
$ docker container rm #{CONTAINER_NAME}

# Remove the <none> tag image
$ docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

For more information about the Docker Command, please check Docker Command

REFERENCE

Clang 5 in a Docker container for C++17 development

Docker Image created for UCSD CSE231 class project

cs255-docker-llvm's People

Contributors

noyafangzhou avatar

Stargazers

Andrew avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.