File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,20 @@ RUN python -m pip install --upgrade pip pyyaml requests linkml
66
77RUN apt-get update && apt-get install -y git
88
9+ # Install necessary system packages: git, curl, and gpg
10+ RUN apt-get update && \
11+ apt-get install -y git curl gnupg && \
12+ rm -rf /var/lib/apt/lists/*
13+
14+ # Install GitHub CLI (gh)
15+ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \
16+ gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
17+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \
18+ tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
19+ apt-get update && \
20+ apt-get install -y gh && \
21+ rm -rf /var/lib/apt/lists/*
22+
923
1024RUN git clone https://github.com/PNNL-CompBio/coderdata.git
1125WORKDIR /usr/src/app/coderdata
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ def load_mapping(mapping_file='improve_sample_mapping.json'):
2424 "samples" : []
2525 }, False
2626
27- def save_mapping (mapping_data ):
27+ def save_mapping (mapping_data , mapping_file ):
2828 """Saves mapping data to disk as JSON."""
29- mapping_file = 'tmp/improve_sample_mapping.json'
3029 with open (mapping_file , 'w' ) as f :
3130 json .dump (mapping_data , f , indent = 2 )
3231
@@ -414,7 +413,7 @@ def main():
414413 key = lambda x : int (x ["stable_id" ]) if x ["stable_id" ].isdigit () else x ["stable_id" ]
415414 )
416415 # Save improve_sample_mapping.json
417- save_mapping (mapping_data )
416+ save_mapping (mapping_data , mapping_file )
418417 print (f"improve_sample_mapping.json updated with { len (mapping_data ['samples' ])} samples." )
419418 # Determine if any improve_sample_ids were modified
420419 ids_modified = any (
You can’t perform that action at this time.
0 commit comments