Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silly Docker idea #9

Closed
Frenzie opened this issue Nov 11, 2019 · 0 comments
Closed

Silly Docker idea #9

Frenzie opened this issue Nov 11, 2019 · 0 comments

Comments

@Frenzie
Copy link
Member

Frenzie commented Nov 11, 2019

I wrote a quick Dockerfile which I figured could be useful, but then I realized it's stupid because you need all the relevant header files.

FROM ubuntu:19.10

ENV PATH="/ffi-cdecl:${PATH}"
ADD . /ffi-cdecl
WORKDIR /ffi-cdecl

RUN apt-get update && \
	apt-get install --no-install-recommends -y \
		build-essential pkg-config \
		gcc-9-plugin-dev \
		libluajit-5.1-dev && \
	apt-get clean && \
	rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN make CROSS_DIR=/usr/lib/gcc CROSSCC=gcc CROSSCXX=g++

That'd work using something like this:

docker build --tag bla/bla:0.0.1 -f Docker/Dockerfile .
docker run -it -v $(in):/bla -v $(out):/blabla bla/bla:0.0.1 ffi-cdecl gcc /bla /blabla

But since you'd also need to mount the relevant header files and all that jazz, there doesn't really seem to be any point to it.

Anyway, just dumping it here for potential future reference.

@Frenzie Frenzie closed this as completed Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant