Create an install script.
This commit is contained in:
parent
c181ab9de9
commit
d540636fd5
5 changed files with 12 additions and 12 deletions
|
|
@ -9,7 +9,6 @@ RUN git clone https://github.com/ahamilton/eris
|
|||
RUN cd eris && git checkout d83bea2ba8a419e2b3cd4fd4b3367e25fae6339d
|
||||
RUN rm -rf eris/.git
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata
|
||||
RUN cd eris && python3.9 -m pip install -r requirements.txt .
|
||||
RUN cd eris && ./install-tools
|
||||
RUN cd eris && ./install
|
||||
|
||||
ENTRYPOINT ["eris"]
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase.
|
|||
|
||||
# git clone https://github.com/ahamilton/eris
|
||||
# cd eris
|
||||
# python3.9 -m pip install -r requirements.txt .
|
||||
# ./install-tools
|
||||
# ./install
|
||||
# eris -h
|
||||
|
||||
### Docker
|
||||
|
|
|
|||
8
install
Executable file
8
install
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
python3.9 -m pip install -r requirements.txt .
|
||||
./install-tools
|
||||
|
|
@ -68,11 +68,6 @@ def make_ubuntu_base():
|
|||
return base_paths
|
||||
|
||||
|
||||
def install_eris():
|
||||
run_in_container("ubuntu", "python3.9 -m pip install -r requirements.txt .")
|
||||
run_in_container("ubuntu", "./install-tools")
|
||||
|
||||
|
||||
def make_app_dir(app_dir, new_paths):
|
||||
os.mkdir(app_dir)
|
||||
make_sub_container("ubuntu", app_dir, new_paths)
|
||||
|
|
@ -98,7 +93,7 @@ def main(work_path):
|
|||
assert os.getuid() == 0 and os.getgid() == 0, "Need to be root."
|
||||
os.chdir(work_path)
|
||||
base_paths = make_ubuntu_base()
|
||||
install_eris()
|
||||
run_in_container("ubuntu", "./install")
|
||||
post_install_paths = relative_paths("ubuntu", all_paths("ubuntu"))
|
||||
new_paths = set(post_install_paths) - set(base_paths)
|
||||
new_paths = filter_paths(new_paths, ["/var/cache/apt/archives", "lto1"])
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@ Eris maintains an up-to-date set of reports for every file in a codebase.
|
|||
|
||||
# git clone https://github.com/ahamilton/eris
|
||||
# cd eris
|
||||
# python3.9 -m pip install -r requirements.txt .
|
||||
# ./install-tools
|
||||
# ./install
|
||||
# eris -h
|
||||
|
||||
### Docker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue