Skip to content

Conversation

@JacekPliszka
Copy link
Contributor

  • Fedora instructions changed to podman with disclaimer added

  • venv script modified to use environment variables more allowing user to put all build related files to single directory (before some were in HOME, other in / )

@jorisvandenbossche
Copy link
Member

@JacekPliszka can you rebase this on latest master? As now it still includes all changes of Wes' PR, which makes it difficult to see what is actually in the diff

@github-actions
Copy link

github-actions bot commented Apr 6, 2020

@JacekPliszka
Copy link
Contributor Author

@JacekPliszka can you rebase this on latest master? As now it still includes all changes of Wes' PR, which makes it difficult to see what is actually in the diff

Sorry, corrected.

One commit is putting Ubuntu with docker at the top while changing Fedora to podman and moving to bottem + adding disclaimer

2nd commit is adding more environment variables so it is easier to run/rerun the commands from command line without containers.

@JacekPliszka
Copy link
Contributor Author

It is mostly small corrections to what Wes did so possibly he should review it.

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for doing this. Here are some comments and questions.

Copy link
Member

@pitrou pitrou Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my testing, you need to add a dot (.) at the end. This is the "context" argument, which is mandatory at least here (Ubuntu 18.04).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I cannot tell as I am running podman and I do not need .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but this seems to conflate two things:

  • running a container on a Fedora host
  • running a Fedora container

Perhaps the note about podman vs. docker should be relegated to a separate section?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I will preare separate section about it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't podman support the -v option to create a volume? Is this why you added the COPY lines to the dockerfile?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does but it is privilaged operation so you either need to disable security or configure it properly.

Copying scripts at the end of docker file is simpler.

But this is probably for separate section...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker build -t arrow_ubuntu_minimal -f Dockerfile.ubuntu
docker build -t arrow_ubuntu_minimal -f Dockerfile.ubuntu .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(without this change, the docker command fails:

"docker build" requires exactly 1 argument.
See 'docker build --help'.

)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added though these lines are originally from Wes

JacekPliszka and others added 3 commits April 6, 2020 15:44
build_venv.sh is modified so when running from command line
the common directory for all build-related tasks is used.
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 after a few changes

@pitrou pitrou closed this in 15c542c Apr 6, 2020
@wesm
Copy link
Member

wesm commented Apr 6, 2020

Thanks all!

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

Successfully merging this pull request may close these issues.

5 participants