Skip to content

Commit

Permalink
updating docker docs and requirements.txt with bootstrap templates an…
Browse files Browse the repository at this point in the history
…d tabulate
  • Loading branch information
brifordwylie committed Jan 31, 2024
1 parent 77e1a22 commit 764890a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion applications/aws_dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY nginx.conf /etc/nginx/sites-available/default
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Install Sageworks (changes often)
RUN pip install --no-cache-dir sageworks==0.4.11
RUN pip install --no-cache-dir sageworks==0.4.13

# Copy the current directory contents into the container at /app
COPY . /app
Expand Down
3 changes: 3 additions & 0 deletions applications/aws_dashboard/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ pandas >= 2.1.2
scikit-learn >= 1.1.1
awswrangler >= 3.4.0
sagemaker >= 2.143
xgboost >= 2.0.2
plotly >= 5.18.0
dash >= 2.8
dash-bootstrap-components >= 1.5.0
dash-bootstrap-templates >= 1.1.1
tabulate >= 0.9.0

14 changes: 8 additions & 6 deletions docs/admin/docker_push.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ cd applications/aws_dashboard
vi Dockerfile
# Install Sageworks (changes often)
RUN pip install --no-cache-dir sageworks==0.4.11 <-- change this
RUN pip install --no-cache-dir sageworks==0.4.13 <-- change this
```

### Build the Docker Image
**Note:** For a client specific config file you'll need to copy it locally so that it's within Dockers 'build context'. If you're building the 'vanilla' open source Docker image, then you can use the `open_source_config.json` that's in the directory already.

**Note2:** If you're using a specific config **make sure** to remove the AWS_PROFILE line, Docker containers/ECS/etc will use a different mechanism for AWS credientials.

```
docker build --build-arg SAGEWORKS_CONFIG=open_source_config.json -t \
sageworks_dashboard:v0_1_9_amd64 --platform linux/amd64 .
sageworks_dashboard:v0_4_13_amd64 --platform linux/amd64 .
```

### Test the Image Locally
Expand All @@ -32,16 +34,16 @@ scp_sandbox_admin | docker login --username AWS \
```
### Tag/Push the Image to AWS ECR
```
docker tag sageworks_dashboard:v0_4_11_amd64 \
public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_1_amd64
docker tag sageworks_dashboard:v0_4_13_amd64 \
public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_13_amd64
```
```
docker push public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_11_amd64
docker push public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_13_amd64
```

### Update the 'latest' tag
```
docker tag public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_11_amd64 \
docker tag public.ecr.aws/m6i5k1r2/sageworks_dashboard:v0_4_13_amd64 \
public.ecr.aws/m6i5k1r2/sageworks_dashboard:latest
```
```
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ sagemaker >= 2.143
plotly >= 5.18.0
dash >= 2.8
dash-bootstrap-components >= 1.5.0
dash-bootstrap-templates >= 1.1.1
tabulate >= 0.9.0
shap>=0.43.0
xgboost>=2.0.2
joblib>=1.3.2
Expand Down
4 changes: 2 additions & 2 deletions src/sageworks/repl/sageworks_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def check_redis(self) -> str:
from sageworks.utils.sageworks_cache import SageWorksCache

# Grab the Redis Host and Port
host = self.cm.get_config("REDIS_HOST")
port = self.cm.get_config("REDIS_PORT")
host = self.cm.get_config("REDIS_HOST", "localhost")
port = self.cm.get_config("REDIS_PORT", 6379)

# Check if Redis is running locally
status = "OK"
Expand Down

0 comments on commit 764890a

Please sign in to comment.