Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lindt/docker-sdc
Docker Image for SDC
https://github.com/lindt/docker-sdc
compiler dlang docker sdc
Last synced: about 1 month ago
JSON representation
Docker Image for SDC
- Host: GitHub
- URL: https://github.com/lindt/docker-sdc
- Owner: lindt
- License: mit
- Created: 2017-02-12T14:38:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-15T16:42:39.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T11:56:32.904Z (3 months ago)
- Topics: compiler, dlang, docker, sdc
- Language: Shell
- Homepage: https://hub.docker.com/r/dlanguage/sdc/
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Docker pulls](https://img.shields.io/docker/pulls/dlanguage/sdc.svg)](https://hub.docker.com/r/dlanguage/sdc/)
[![Docker Build](https://img.shields.io/docker/automated/dlanguage/sdc.svg)](https://hub.docker.com/r/dlanguage/sdc/)
[![Latest Tag](https://img.shields.io/github/tag/lindt/docker-sdc.svg)](https://hub.docker.com/r/dlanguage/sdc/)# docker-sdc
Docker Image for Stupid D Compiler [SDC](https://github.com/SDC-Developers/SDC).
## Motivation
Installation of a compiler sometimes is cumbersome. This Docker image should take this pain and allow you to easily switch between Versions of the same compiler and even different compilers.
The SDC is still hasn't reached version 1.0.
It could just compile basic stuff.
To see what it's able to compile, check out it's [tests](https://github.com/SDC-Developers/SDC/tree/master/tests).## Other Compilers
Allows to use all major D Compilers without installation.
| Compiler | Latest Tag |
| -------- | ---------- |
| DMD | [![Latest Tag](https://img.shields.io/github/tag/lindt/docker-dmd.svg)](https://hub.docker.com/r/dlanguage/dmd/) |
| LDC | [![Latest Tag](https://img.shields.io/github/tag/lindt/docker-ldc.svg)](https://hub.docker.com/r/dlanguage/ldc/) |
| GDC | [![Latest Tag](https://img.shields.io/github/tag/lindt/docker-gdc.svg)](https://hub.docker.com/r/dlanguage/gdc/) |
| SDC | [![Latest Tag](https://img.shields.io/github/tag/lindt/docker-sdc.svg)](https://hub.docker.com/r/dlanguage/sdc/) |## Usage
Place a `test.d` in your current directory.
Then execute
```
docker run --rm -ti \
-e USER -e HOME -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_GROUP_ID=`id -g $USER` \
-w /src \
-v $(pwd):/src \
dlanguage/sdc sdc test.d
```