Merge branch '10_env_image' of ssh://gitea.dmz.rs:2222/sborovic/dmzOS into 10-env_image
This commit is contained in:
commit
af9befd937
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
4
Dockerfiles/dockerfile.c_toolchain
Normal file
4
Dockerfiles/dockerfile.c_toolchain
Normal file
@ -0,0 +1,4 @@
|
||||
FROM ubuntu:18.04
|
||||
RUN apt-get update && apt-get install -y vim gcc indent clang clang-format gdb binutils nasm xxd llvm lld
|
||||
WORKDIR /dmzOS
|
||||
ENTRYPOINT [ "bash" ]
|
7
config/.vimrc
Normal file
7
config/.vimrc
Normal file
@ -0,0 +1,7 @@
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
set noswapfile
|
||||
set autoread
|
||||
|
||||
set number relativenumber
|
||||
autocmd BufWritePost *.[ch] exec "!indent -kr -nut % && rm %~"
|
BIN
dmzOS/test/clang_test
Executable file
BIN
dmzOS/test/clang_test
Executable file
Binary file not shown.
BIN
dmzOS/test/gcc_test
Executable file
BIN
dmzOS/test/gcc_test
Executable file
Binary file not shown.
12
dmzOS/test/test.c
Normal file
12
dmzOS/test/test.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2) {
|
||||
printf("Please provide at least one argument\n");
|
||||
exit(1);
|
||||
};
|
||||
printf("Hello, C!\n");
|
||||
return 0;
|
||||
}
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
c_toolchain:
|
||||
build:
|
||||
context: ./Dockerfiles
|
||||
dockerfile: dockerfile.c_toolchain
|
||||
container_name: c_toolchain
|
||||
tty: true
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./dmzOS:/dmzOS
|
||||
- ./config/.vimrc:/root/.vimrc
|
Loading…
Reference in New Issue
Block a user