Skip to content

Commit

Permalink
fix alpine and do not install opam twice on rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Sep 23, 2018
1 parent e845df7 commit 38443e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src-opam/dockerfile_opam.ml
Expand Up @@ -74,7 +74,7 @@ let header ?maintainer img tag =
let apk_opam2 ?(labels= []) ~distro ~tag () =
header distro tag @@ label (("distro_style", "apk") :: labels)
@@ Linux.Apk.install "build-base bzip2 git tar curl ca-certificates openssl"
@@ install_opam_from_source ~branch:"master" ()
@@ install_opam_from_source ~branch:"2.0" ()
@@ run "strip /usr/local/bin/opam*"
@@ from ~tag distro
@@ copy ~from:"0" ~src:["/usr/local/bin/opam"] ~dst:"/usr/bin/opam" ()
Expand Down Expand Up @@ -114,8 +114,7 @@ let yum_opam2 ?(labels= []) ~distro ~tag () =
@@ Linux.RPM.update
@@ Linux.RPM.dev_packages ~extra:"which tar curl xz libcap-devel openssl" ()
@@ install_bubblewrap_from_source ()
@@ install_opam_from_source ~branch:"2.0" ()
@@ install_opam_from_source ~prefix:"/usr" ~branch:"master" ()
@@ install_opam_from_source ~prefix:"/usr" ~branch:"2.0" ()
@@ from ~tag distro @@ Linux.RPM.install "yum-plugin-ovl" @@ Linux.RPM.update
@@ Linux.RPM.dev_packages ()
@@ copy ~from:"0" ~src:["/usr/local/bin/bwrap"] ~dst:"/usr/bin/bwrap" ()
Expand Down

0 comments on commit 38443e7

Please sign in to comment.