Skip to content

Commit

Permalink
Merge pull request #45 from epics-containers/dev
Browse files Browse the repository at this point in the history
Removed or flagged redundant pages.
  • Loading branch information
gilesknap authored Oct 26, 2023
2 parents f76ead7 + b202295 commit 566a51e
Show file tree
Hide file tree
Showing 26 changed files with 217 additions and 334 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
# to complete as the docs build warns and fails.
html_theme_options = dict(
logo=dict(
text=project,
text="EPICS Containers",
),
navigation_with_keys=True,
use_edit_page_button=True,
Expand Down
10 changes: 3 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@

Update for October 2023
=======================
The final round of improvements are done. The latest framework has
become much simpler and has a good developer experience.

**WARNING**

The Tutorials are currently out of date and won't work. These are
being updated now and will be available by end of November 2023.
The tutorials are being updated to work with the improved framework.
The first few are available now, take note of warnings about out of
date tutorials.


Communication
Expand Down
2 changes: 1 addition & 1 deletion docs/user/explanations/kubernetes_cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Three cluster topologies were considered for this project.
Current Approach
----------------

DLS is currently investigating Cluster per Beamline as the preferred topology. We
DLS is using Cluster per Beamline as the preferred topology. We
will continue to have a central cluster for shared services but in addition will
have a cluster per beamline and a cluster for the accelerator.

Expand Down
9 changes: 0 additions & 9 deletions docs/user/explanations/repos.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Updating and Testing ibek-defs
==============================
Updating and Testing ibek-support
=================================

TODO: this is draft
TODO: this uses a Diamond internal repo as an example
.. Warning::

This is draft only and out of date. It will be updated soon.

The ibek-defs repository contains ibek support yaml. Here is an example
procedure for local testing of changes to support yaml in ibek-defs
Expand Down
55 changes: 0 additions & 55 deletions docs/user/how-to/run_iocs.rst

This file was deleted.

44 changes: 0 additions & 44 deletions docs/user/how-to/update_templated.rst

This file was deleted.

7 changes: 2 additions & 5 deletions docs/user/how-to/useful_k8s.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ The dashboard gives you a nice GUI for exploring and controlling your cluster.
It is very useful for new users to get an understanding of what Kubernetes
has to offer.

These commands should be run INSIDE the devcontainer.
These commands should be run after you have set up your Kubernetes cluster and
setup the environment variables as described in `../tutorials/setup_k8s`.

Execute this on your workstation:

Expand Down Expand Up @@ -48,10 +49,6 @@ Then create the admin user and role by executing the following:
Get a token for the user and copy the token into your clipboard.
On k3s v1.23 and older::
kubectl -n kubernetes-dashboard describe secret admin-user-token | grep '^token'
On k3s v1.24 and newer::
kubectl -n kubernetes-dashboard create token admin-user
Expand Down
Binary file added docs/user/images/bl01t-actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/user/images/edm_sim.png
Binary file not shown.
7 changes: 2 additions & 5 deletions docs/user/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ side-bar.
tutorials/setup_workstation
tutorials/create_beamline
tutorials/deploy_example
tutorials/create_ioc
tutorials/ioc_changes
tutorials/release_beamline
tutorials/generic_ioc
tutorials/debug_generic_ioc
tutorials/test_generic_ioc
Expand All @@ -36,13 +36,11 @@ side-bar.
:caption: How-to Guides
:maxdepth: 1

how-to/run_iocs
how-to/debug
how-to/contributing
how-to/own_tools
how-to/useful_k8s
how-to/update_templated
how-to/ibek-defs
how-to/ibek-support

+++

Expand All @@ -59,7 +57,6 @@ side-bar.
explanations/kubernetes_cluster
explanations/docs-structure
explanations/repositories
explanations/repos

+++

Expand Down
4 changes: 4 additions & 0 deletions docs/user/reference/ioc_helm_chart.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
IOC Helm Chart Details
======================

.. Warning::

This page is out of date and will be updated soon.

IOC instances are described using a helm chart which in turn generates
a Kubernetes manifest to tell Kubernetes what resources to create in order
to run the IOC instance.
Expand Down
21 changes: 12 additions & 9 deletions docs/user/tutorials/create_beamline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ When the project ``bl01t`` is pushed to GitHub, continuous integration will
verify that each of the IOCs in the beamline are valid by launching them
with basic configuration.

It's not feasible to run full system tests with these IOCs Instances
because they are configured to run with real hardware on a beamline.
But note that each of these IOC instances will be launched using a
The tests on beamline repositories are basic at present. However the intention
is that eventually each device on a beamline will be simulated using
`Tickit <https://github.com/dls-controls/tickit>`_ and that the CI so system
tests of each IOC against simulated hardware.

Also note that each of these IOC instances will be launched using a
Generic IOC image. Ideally the CI for each Generic IOC should have already run
system tests against simulated hardware. (this is something we aspire to
using simulations provided by `Tickit <https://github.com/dls-controls/tickit>`_)
system tests against simulated (but not beamline specific) hardware.

This beamline repo will be taken from a template that comes with a single example
IOC and further steps in the following tutorials will teach you how to add your own.
Expand Down Expand Up @@ -123,7 +125,8 @@ to determine where to deploy IOCS and where to find container images etc.

For details of what goes in this file see `../reference/environment`.
For the purpose of this tutorial for ``bl01t`` you should have the following
in your environment.sh:
in your environment.sh (make sure you insert your GitHub account name
where indicated):

- SECTION 1:

Expand Down Expand Up @@ -171,8 +174,8 @@ Wrapping Up
-----------

You should now have a working beamline repository. It contains a single
IOC Instance and that is only a non-functional example. In the following
tutorials we will investigate the example and then create a real IOC Instance.
IOC Instance which is a non-functional example. In the following
tutorial we will investigate the example and then create a real IOC Instance.

You can now push the repository up to GitHub and give it a version tag like this:

Expand All @@ -182,7 +185,7 @@ You can now push the repository up to GitHub and give it a version tag like this
git commit -m "changed blxxi to bl01t"
git push
git tag 2023.11.1
git push --tags
git push origin 2023.11.1
We use ``CalVer`` version numbers for beamline repositories and Generic IOCs.
Expand Down
15 changes: 15 additions & 0 deletions docs/user/tutorials/create_ioc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Create a Working Example IOC Instance
=====================================

Introduction
------------

The last section covered deploying and managing the example Instance that
came with the template beamline repository. Here we will create a new
IOC Instance that implements a simulated detector.

TODO - complete this.

.. figure:: ../images/c2dv.png

the c2dv viewer showing an image from the example IOC
4 changes: 4 additions & 0 deletions docs/user/tutorials/debug_generic_ioc.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Debugging Generic IOC Builds
============================

.. Warning::

This tutorial is out of date and will be updated soon.

This tutorial is a continuation of `generic_ioc`. Here we will look into
debugging failed builds and fix the issue we saw in the previous tutorial.

Expand Down
Loading

0 comments on commit 566a51e

Please sign in to comment.